Latest Version: 0.9.6.2

Validator

The base class of most validators. See IValidator for more, and FancyValidator for the more common (and more featureful) class.

Messages


Attributes

a __singletonmethods__

('to_python', 'from_python')

a compound

False

a repeating

False

Methods

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

f __classinit__(cls, new_attrs) ...

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

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

f __initargs__(self, new_attrs) ...

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

f all_messages(self) ...

Return a dictionary of all the messages of this validator, and any subvalidators if present. Keys are message names, values may be a message or list of messages. This is really just intended for documentation purposes, to show someone all the messages that a validator or compound validator (like Schemas) can produce.

@@: Should this produce a more structured set of messages, so that messages could be unpacked into a rendered form to see the placement of all the messages? Well, probably so.

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

f message(self, msgName, state, **kw) ...

f subvalidators(self) ...

Return any validators that this validator contains. This is not useful for functional, except to inspect what values are available. Specifically the .all_messages() method uses this to accumulate all possible messages.

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

See the source for more information.

Top