Sometimes you need more than an Int() validator. Fortunately, FormEncode provides a number of built-in validators that you can use. Not only that, it provides you with a simple mechanism for creating your own validators.
More often than not one of the built-in validators can give you what you needâ€”the regex validator is particularly flexible. If you want to check that the user entered a valid number, a valid date, a valid URL, or a valid e-mail address, there are built-in validators to help you.
The most-up-to date list of built-in validators is available at www.turbogears.org/docs/api/formencode.validators-module.htm. Hereâ€™s a list of the most commonly used validators:
Constantâ€” If you want to ignore the ...