Formulator field base class; shared functionality of all fields.
Validate this field using the raw unvalidated data found
in REQUEST.
Returns the validated and processed value, or raises a ValidationError.
ViewA convenience method to render a sub field widget from
REQUEST (unvalidated data).
ViewGet value of property without looking at possible overrides.
Access contents informationGet the contents of a particular error message with key
name.
View management screensGet property value for an id. Call override if override is
defined, otherwise use property value. Alternatively
get_value() can be used to do this explicitly.
In Python, you can access property values using:
form.field['key']
and in Zope Page Templates you can use the following path notation:
form/field/key
Access contents informationReturns true if a property with name id exists.
Access contents informationA convenience method to render the field widget using
the raw data from REQUEST if any is available. The field's
default value will be used if no raw data can be found.
ViewGet property value for an id. Call override if override is
defined, otherwise use property value. Alternatively the
dictionary interface can also be used (__getitem__()).
Keywords arguments can optionally be passed, which will end up in the namespace of any TALES expression that gets called.
Access contents informationValidate a sub field of this field using the raw unvalidated
data found in REQUEST. This is used by composite fields
composed of multiple sub fields such as DateTimeField.
Returns the validated and processed value, or raises a ValidationError.
ViewGet the override method for an id, or empty string if no such override method exists.
Access contents informationGet the rendered HTML for the widget of this field, to display the fields on a form.
valuevalue parameter is not None, this will be
the pre-filled value of the field on the form.REQUESTvalue parameter is None and REQUEST is
supplied, raw (unvalidated) values will be looked up in
REQUEST to display in the field.If neither value or REQUEST are supplied, the field's
default value will be used instead.
ViewRender supplied value for viewing, not editing. This can be used to show form results, for instance.
ViewRender a sub field of this field. This is used by composite
fields that are composed of multiple sub fields such as
DateTimeField. id is the id of the sub field. value and
REQUEST work like in render(), but for the sub field.
ViewGet all keys of error messages that the validator of this field provides.
View management screensClear (initialize to nothing) overrides for all properties.
Change Formulator FieldsInitialize the values of field properties. dict is a
dictionary. A dictionary entry has as key the property id,
and as value the value the property should take initially.
If there is no entry in the dictionary for a particular
property, the default value for that property will be used.
All old property values will be cleared.
Change Formulator FieldsA utility method that returns true if this field is required.
(checks for required property).
Access contents information