Am 02.06.2013 17:46, schrieb Alan Jenkins:
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?

The various validators can be imported from either formencode or tw2.core. But the validate decorator must be imported from tg.

-- Christoph

--
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.


Reply via email to