
from_python ( True ) Traceback (most recent call last).

Invalid: None is not a subclass of one of the types, > cint2 = ConfirmType ( type = int ) > cint2 ( accept_python = False ). to_python ( None ) Traceback (most recent call last). Invalid: '1' is not a subclass of > cintfloat = ConfirmType ( subclass = ( float, int )) > cintfloat. to_python ( '1' ) Traceback (most recent call last). > cint = ConfirmType ( subclass = int ) > cint. Those lists is considered the preferred form. Respectively anything in true_values is true, anything inįalse_values is false, case-insensitive). Values like ‘true’ and ‘false’ are considered True and False, Messages badType: The input must be a string (not a %(type)s: %(value)r) empty: Please enter a value noneType: The input must be a string (not None) tooLong: Enter a value not more than %(max)i characters long tooShort: Enter a value %(min)i characters long or more class formencode.validators. to_python ( '' ) Traceback (most recent call last). Invalid: Please enter a value > ByteString ( min = 1 ). to_python ( None ) '' > ByteString ( min = 3 ). Invalid: Enter a value not more than 10 characters long > ByteString (). to_python ( 'xxxxxxxxxxx' ) Traceback (most recent call last). Invalid: Enter a value 2 characters long or more > ByteString ( max = 10 ). to_python ( 'a' ) Traceback (most recent call last).

formencode.variabledecode – Turn flat HTML form submissions into nested structures.formencode.validators – lots of useful validators.formencode.schema – Validate complete forms.formencode.national – Country specific validators.formencode.htmlgen – Convenient building of ElementTree nodes.formencode.htmlfill_schemabuilder – Read a Schema from an HTML Form.formencode.htmlfill – Fill in HTML forms.formencode.htmlrename – Rename fields in an HTML form.formencode.foreach – Validate items in a list.formencode.exc – Custom exceptions and warnings.formencode.doctest_xml_compare – XML-based comparison of Doctest output.

