Thanks all. That works for me. I am less confused. Background noise: (... deletes the custom validator class...)
On Mar 13, 12:13 am, Marco Mariani <[email protected]> wrote: > Julian Yap wrote: > > Using formencode.validators, I have a field which accepts an Int. I > > also want it to validate NotEmpty. > > I sugges you to Read The Formencode Manual > > Two ways: > > from formencode.validators import Int, NotEmpty, All > > validator=Int(min=100, max=999, not_empty=True) > > validator = All(Int(min=100, max=999), NotEmpty) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

