| Home | Trees | Indices | Help |
|---|
|
|
properties used by Document object
|
|||
|
Property Property base which all other properties inherit. |
|||
|
StringProperty string property str or unicode property |
|||
|
IntegerProperty Integer property. |
|||
|
LongProperty Integer property. |
|||
|
FloatProperty Float property, map to python float |
|||
|
Number Float property, map to python float |
|||
|
BooleanProperty Boolean property, map to python bool |
|||
|
DecimalProperty Decimal property, map to Decimal python object |
|||
|
DateTimeProperty DateTime property. |
|||
|
DateProperty Date property, like DateTime property but only for Date. |
|||
|
TimeProperty Date property, like DateTime property but only for time. |
|||
|
DictProperty A property that stores a dict of things |
|||
|
ListProperty A property that stores a list of things. |
|||
|
StringListProperty shorthand for list that should containe only unicode |
|||
|
LazyDict object to make sure we keep updated of dict in _doc. |
|||
|
LazyList object to make sure we keep update of list in _doc. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
ALLOWED_PROPERTY_TYPES = set([basestring, str, unicode, bool,
|
|||
re_date = re.compile('^(\d{4})\D?(0[1-9]|1[0-2])\D?([12]\d|0[1
|
|||
re_time = re.compile('^([01]\d|2[0-3])\D?([0-5]\d)\D?([0-5]\d)
|
|||
re_datetime = re.compile('^(\d{4})\D?(0[1-9]|1[0-2])\D?([12]\d
|
|||
re_decimal = re.compile('^(\d+).(\d+)$')
|
|||
MAP_TYPES_PROPERTIES = {decimal.Decimal: DecimalProperty, date
|
|||
|
|||
validate a value. test if value is in supported types |
convert a value to json using appropriate regexp. For Dates we use ISO 8601. Decimal are converted to string. |
convert a json value to python type using regexp. values converted have been put in json via `value_to_json` . |
|
|||
ALLOWED_PROPERTY_TYPES
|
re_date
|
re_time
|
re_datetime
|
MAP_TYPES_PROPERTIES
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed May 19 15:52:50 2010 | http://epydoc.sourceforge.net |