Home | Trees | Indices | Help |
---|
|
object --+ | Field --+ | TextField --+ | ChoiceField --+ | EnumerationField --+ | BooleanField
A field containing a boolean value.
The enumeration contains two values: true and false.
|
|||
|
|||
|
|||
Inherited from 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.
|
Validate a field value. For an acceptable type and value, return the representation of 'value' in the underlying field storage. 'value' -- A value to validate for this field. returns -- If the 'value' is valid, returns 'value' or an equivalent "canonical" version of 'value'. (For example, this function may search a hash table and return an equivalent entry from the hash table.) This function must raise an exception if the value is not valid. The string representation of the exception will be used as an error message in some situations. Implementations of this method must be idempotent.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:40 2011 | http://epydoc.sourceforge.net |