Any

This class is like an 'or' operator for validators. The first validator/converter that validates the value will be used. (You can pass in lists of validators, which will be ANDed)


Attributes

a validators

[]

a strip

False

a use_builtins_gettext

True

a accept_python

True

a __singletonmethods__

('to_python', 'from_python', 'message', 'all_messages', 'subvalidators')

a gettextargs

{}

a declarative_count

8

a __unpackargs__

('*', 'validatorArgs')

a compound

False

a not_empty

<property object at 0xb7c0761c>

a __mutableattributes__

('validators',)

a repeating

False

Methods

f __classinit__(cls, new_attrs) ...

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

f subvalidators(self) ...

f attempt_convert(self, value, state, validate) ...

f not_empty__get(self) ...

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.