Which version of TurboGears? In latest versions it should just be "from tg import validate" otherwise if I'm not wrong it was "from tg.decorators import validate"
On Sun, Jun 2, 2013 at 5:46 PM, Alan Jenkins <[email protected]>wrote: > Hey guys, > > Am currently trying to validate some post data using the information found > at http://turbogears.org/2.1/docs/main/Validation.html however I am > getting errors that @validate is not defined. > > The docs only seem to mention importing validators from formencode. Is > there somewhere I should be importing the validate decorator from? If so > from which module? Also docs need updating to reflect this if this is the > case. > > Thanks, > > Alan Jenkins > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/turbogears?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

