Package couchdbkit :: Package schema :: Module base
[hide private]
[frames] | no frames]

Module base

source code

module that provides a Document object that allows you to map CouchDB document in Python statically, dynamically or both

Classes [hide private]
  ReservedWordError
exception raised when a reserved word is used in Document schema
  SchemaProperties
  DocumentSchema
  DocumentBase
Base Document object that map a CouchDB Document.
  AttachmentMixin
mixin to manage doc attachments.
  QueryMixin
Mixin that add query methods
  Document
Full featured document object implementing the following :
  StaticDocument
Shorthand for a document that disallow dynamic properties.
Functions [hide private]
 
check_reserved_words(attr_name) source code
 
valid_id(value) source code
Variables [hide private]
  ALLOWED_PROPERTY_TYPES = set([<type 'bool'>, <type 'float'>, <...
  _RESERVED_WORDS = ['_id', '_rev', '$schema']
  _NODOC_WORDS = ['doc_type']
  __package__ = 'couchdbkit.schema'
Variables Details [hide private]

ALLOWED_PROPERTY_TYPES

Value:
set([<type 'bool'>,
     <type 'float'>,
     <type 'int'>,
     <type 'list'>,
     <type 'long'>,
     <type 'dict'>,
     <type 'NoneType'>,
     <type 'set'>,
...