On Jul 14, 2007, at 11:57 AM, Neil Blakey-Milner wrote:
> > 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. Thank you for you reply. I am a shame to have posted that to the list. I have been looking into that code for hours without seeing that obvious typo. Everything is working as expected now. -fred- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

