ั๒
ฐIc @ sx d Z d e f d YZ d e f d YZ d e f d YZ d e f d YZ d e f d
YZ d S( s=
Interfaces for FormEncode (for documentation purposes only)
t Attributec B s e Z d d Z RS( c C s | | _ | | _ d S( N( t descriptiont name( t selfR R ( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyt __init__ s N( t __name__t
__module__t NoneR ( ( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyR s t Interfacec B s e Z RS( ( R R ( ( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyR s t IDeclarativec B s e Z d Z d Z RS( c K s d S( st
Instantiates this class with all the keywords being used to
update the instance variables.
N( ( t kw( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyR s c K s d S( se
Returns a copy with all attributes using the given keywords,
being updated.
N( ( R
( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyt __call__ s ( R R R R ( ( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyR s t
IValidatorc B sq e Z e d d d Z e d d d Z e d d d Z e d d d Z d d Z d d
Z d Z
RS(
sO
A dictionary of messages (with formatting strings) for error
responsesR t messagessื
If the source that this validator would handle is missing (e.g.,
a field that was not specified), use this value. If
Validator.NoDefault, then if the field is missing an exception
should be raised.t ifMissingsn
A boolean; this object accepts lists if true, subvalidators can be
found in the validators attribute.t repeatings
A boolean; this object has a dictionary of validators if this is
true, subvalidators can be found in the field attribute (a
dictionary).t compoundc C s d S( s
Convert `value` from its foreign representation to its Python
representation. `state` is for application-specific hooks.
N( ( t valuet state( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyt to_python/ s c C s d S( s
Convert `value` from its Python representation to the foreign
representation. `state` is for application-specific hooks.
N( ( R R ( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyt from_python5 s c C s d S( s
Return the message (from the `messages` attribute) that goes
with `name`, or return default if `name` not found `default`.
N( ( R t default( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyt message; s N( R R R R
t
if_missingR R R R R R ( ( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyR s t ISchemac B s e Z e d d d Z RS( s' A dictionary of (field name: validator)R t fields( R R R R ( ( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyR A s N( t __doc__t objectR R R R R ( ( ( s9 /usr/lib/python2.6/site-packages/formencode/interfaces.pyt