| Home | Trees | Indices | Help |
|
|---|
|
|
The enumeration field stores integers in the database, but represents them as strings. This allows efficient storage and querying while preserving readable code.
Typical use of this field would be a status field.
Enumeration fields are visualized as a combo box, where the labels in the combo box are the capitalized strings:
class Movie(Entity):
title = Field(Unicode(60), required=True)
state = Field(camelot.types.Enumeration([(1,'planned'), (2,'recording'), (3,'finished'), (4,'canceled')]),
index=True, required=True, default='planning')
| Nested Classes | |
|
impl A type for int integers. |
|
| Instance Methods | |||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
|
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Jun 12 15:41:37 2010 | http://epydoc.sourceforge.net |