| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
BaseField --+
|
ReferenceField
A field holding a reference to another document of type ref_type. The value can be set from a pymongo ObjectId, a hexadecimal string, or an instance of a Document subclass. The document to which the field refers is automatically fetched when the reference field is accessed
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from 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
|
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
|
Get the value stored in this field. By default returns self._value
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri May 20 23:31:51 2011 | http://epydoc.sourceforge.net |