validate(self,
values)
Attempts to validate this field. Because of dependencies it is
required that "values" be passed in as a dict object containing, at a
minimum, access to values for all Fields in this Field and its
dependencies.
As a postcondition, self.result is a dictionary containing all
of the Fields we validated (valid or invalid does not matter).
The dict is indexed by field name and contiains a Field object.
The value property represents the value after casting (if
applicable). Other properties include the errorMsg, and whether
or not the field is invalid.
Dependencies of a field, if validated, are returned as part of this
dictionary. There is no nesting, so the multi-level paradigm used
to enter a form is lost on return; the results are flattened.
-
|