| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
BaseField
The base class for all database field objects. You can override this class to define your own database field types.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
value The value held by this field. |
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
Set the value that this field will hold. You should use this method to perform validation as well. Raise a TypeError if value is of the incorrect type. By default, this method stores value in self._value |
Get the value stored in this field. By default returns self._value |
Return the value to be sent to the database. You may find it useful to override this if your field should send its data to the user in one format and to the database in another format |
Perform deferred initialization on this field. This should be used whenever there are values that should be set when an instance of the Document object is created rather than when the Document class is created |
|
|||
valueThe value held by this field. |
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri May 20 23:31:51 2011 | http://epydoc.sourceforge.net |