Property base which all other properties inherit.
|
|
__init__(self,
verbose_name=None,
name=None,
default=None,
required=False,
validators=None,
choices=None)
Default constructor for a property. |
source code
|
|
|
|
| __property_config__(self,
document_class,
property_name) |
source code
|
|
|
|
|
|
|
| __get__(self,
document_instance,
document_class) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
validate(self,
value,
required=True)
validate value |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
to_python(self,
value)
convert to python type |
source code
|
|
|
|
to_json(self,
value)
convert to json, Converted value is saved in couchdb. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|