Julian Yap schrieb:
> Using formencode.validators, I have a field which accepts an Int.  I
> also want it to validate NotEmpty.
> 
> How can I add both validations?  The Int validator also accepts an
> empty field.

As most validators, Int also supports a "not_empty" option. I.e. you can 
use Int(min=100, max=999, not_empty=True).

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to