Hello pylons,
I've been fiddling around with FormEncode and whatnot for a few hours,
and I'm wondering if in a FormEncode schema there is a place where I
can run code. For example, my current schema is this:
class CommentForm(Schema):
allow_extra_fields = True
filter_extra_fields = True
comment = validators.UnicodeString(not_empty=True, strip=True)
email = validators.Email(not_empty=True, resolve_domain=True)
name = validators.UnicodeString(not_empty=True, strip=True)
recaptcha_challenge_field = validators.UnicodeString(
not_empty=True,
strip=True
)
recaptcha_response_field = validators.UnicodeString(
not_empty=True,
strip=True
)
url = validators.URL(add_http=True)
As you can see, I have recaptcha_challenge_field and
recaptcha_response_field, and I would prefer for FormEncode to take
care of validating reCaptcha input. However, after vaguely scurrying
through the documentation, I cannot find any references as to how I
can accomplish this. Chained Validators might be the way to go, but
do chained validators run after every other field is validated?
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.