Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
81 lines (60 sloc) 1.48 KB
:mod:`formencode.validators` -- lots of useful validators
=========================================================
.. automodule:: formencode.validators
.. contents::
Module Contents
---------------
Basic Types
~~~~~~~~~~~
.. autoclass:: ByteString
.. autoclass:: StringBool
.. autoclass:: Bool
.. autoclass:: Int
.. autoclass:: Number
.. autoclass:: UnicodeString
.. autoclass:: Set
Basic Validator/Converters
~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autoclass:: ConfirmType
.. autoclass:: Wrapper
.. autoclass:: Constant
.. autoclass:: StripField
.. autoclass:: OneOf
.. autoclass:: DictConverter
.. autoclass:: IndexListConverter
Simple Validators
~~~~~~~~~~~~~~~~~
.. autoclass:: MaxLength
.. autoclass:: MinLength
.. autoclass:: NotEmpty
.. autoclass:: Empty
.. autoclass:: Regex
.. autoclass:: PlainText
Dates and Times
~~~~~~~~~~~~~~~
.. autoclass:: DateValidator
.. autoclass:: DateConverter
.. autoclass:: TimeConverter
HTML Form Helpers
~~~~~~~~~~~~~~~~~
.. autoclass:: SignedString
.. autoclass:: FieldStorageUploadConverter
.. autoclass:: FileUploadKeeper
URLs, Email, etc.
~~~~~~~~~~~~~~~~~
.. autoclass:: Email
.. autoclass:: URL
.. autoclass:: IPAddress
.. autoclass:: CIDR
.. autoclass:: MACAddress
Form-wide Validation
~~~~~~~~~~~~~~~~~~~~
.. autoclass:: FormValidator
.. autoclass:: RequireIfMissing
.. autoclass:: RequireIfMatching
.. autoclass:: FieldsMatch
Credit Cards
~~~~~~~~~~~~
.. autoclass:: CreditCardValidator
.. autoclass:: CreditCardExpires
.. autoclass:: CreditCardSecurityCode