Python Paste


ToFrom

Applies one validator when going to_python, another when going from_python (for non-symmetrical conversion).

Messages


Attributes

a __singletonmethods__

('to_python', 'from_python')

a __unpackargs__

('to_python_validator', 'from_python_validator')

a compound

False

a repeating

False

Methods

f __init__(self, *args, **kw) ...

f to_python(self, value, state) ...

f from_python(self, value, state) ...

f __classinit__(cls, new_attrs) ...

f __initargs__(self, new_attrs) ...

f __call__(self, *args, **kw) ...

f __sourcerepr__(self, source, binding=None) ...

f __classsourcerepr__(cls, source, binding=None) ...

See the source for more information.