IValidator


Attributes

a messages

<formencode.interfaces.Attribute object at 0x877202c>

a if_missing

<formencode.interfaces.Attribute object at 0x8772fec>

a compound

<formencode.interfaces.Attribute object at 0x877270c>

a repeating

<formencode.interfaces.Attribute object at 0x87728ac>

Methods

f __init__(**kw) ...

Instantiates this class with all the keywords being used to update the instance variables.

f __call__(**kw) ...

Returns a copy with all attributes using the given keywords, being updated.

f to_python(value, state=None) ...

Convert value from its foreign representation to its Python representation. state is for application-specific hooks.

f from_python(value, state=None) ...

Convert value from its Python representation to the foreign representation. state is for application-specific hooks.

f message(name, default) ...

Return the message (from the messages attribute) that goes with name , or return default if name not found default .

See the source for more information.