On 7/14/07, Fred C <[EMAIL PROTECTED]> wrote: > Can some one tell me what I am doing wrong here. > > I have that code inspired from this http://docs.turbogears.org/1.0/ > ValidateDecorator#schema-validation and the validator doesn't work. > tg_error is always None > > > class TXfileValidator(validators.Schema): > addr_from = validators.Email(not_emtpy=True) > recipient = validators.Email(not_emtpy=True)
Hey there, Did you copy this directly from your code? Either way, probably best to check your code to see if you spelled "not_empty" as "not_emtpy" by mistake. Neil -- Neil Blakey-Milner http://nxsy.org/ [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

