Michele,
> During the day I've got this new idea, is a little improvement IMHO
> that leverage python possibilities (ie. not being a strong typed
> language ;-)):
>
> 1) New validator
>
> TextField(validator=Int(not_empty=True))
>
> 2) Tweak to the default validator
>
> CheckBoxList(validator={'not_empty'=True})
>
> Rationale:
>
> 1) As I said validator and validator_args are mutually exclusive so it
> doesn't make sense to add a new parameter when only one of the two can
> be used
> 2) All validation aspect are clearly bounded to the validator parameter
> and FE, there is only one and clear way of doing this thing
> 3) I don't like validator_args as any one out there I think ;-)
I like it.
Moreover, it's compatible with other places, e.g. tg.validator accepting a dict
or a Schema.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---