Thank you Yattom. :-)
j

やっとむ wrote:

>Hi jose,
>
>You can use validators.Any() and validators.All() like this:
>
>widgets.TextField(validator=validators.All(validators.Int,
>validators.NotEmpty))
>
>They are actually defined in formencode.compound.
>
>- Yattom
>
>jose wrote:
>  
>
>>Hi all,
>>
>>Someone knows how to define more than one validator for a widget?
>>like this: widgets.TextField(validator=(validators.Int, validators.NotEmpty)
>>
>>thanks,
>>
>>j
>>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to