Home | Trees | Indices | Help |
---|
|
object --+ | Field --+ | TextField --+ | ChoiceField --+ | EnumerationField
A field that contains an enumeral value.
The enumeral value is selected from an enumerated set of values. An enumeral field uses the following properties:
enumeration -- A mapping from enumeral names to enumeral values. Names are converted to strings, and values are stored as integers.
ordered -- If non-zero, the enumerals are presented to the user ordered by value.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Create an enumeration field. 'enumerals' -- A sequence of strings of available enumerals. 'default_value' -- The default value for this enumeration. If 'None', the first enumeral is used.
|
Return a sequence of enumerals. returns -- A sequence consisting of string enumerals objects, in the appropriate order.
|
Generate help text about this field in structured text format.
|
Generate a DOM element node for a value of this field. 'value' -- The value to represent. 'document' -- The containing DOM document node.
|
Return a value for this field represented by DOM 'node'. This method does not validate the value for this particular instance; it only makes sure the node is well-formed, and returns a value of the correct Python type. 'node' -- The DOM node that is being evaluated. 'attachment_store' -- For attachments, the store that should be used. If the 'node' is incorrectly formed, this method should raise an exception.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:40 2011 | http://epydoc.sourceforge.net |