The majority of validators come directly from FormEncode. However, tw.forms overrides some, and provides some additional validators. It is recommended to always access validators through tw.forms.validators (rather than importing FormEncode directly), to ensure any overrides in tw.forms are applied. Only the tw.forms validators are documented here; consult the FormEncode documentation for others.
Converts Python date and datetime objects into string representation and back.
Messages
The FormEncode UnicodeString validator encodes strings as utf-8 for display. However, this is not desired behaviour in tw.forms, as Genshi will fail when it receives such strings. Instead, this validator renders Python unicode objects where possible, strings otherwise.
Messages
This validator helps you avoid cross-site request forgeries (CSRF) - a kind of web application security vulnerability.
Messages