Package couchdb :: Module client :: Class Document

Class Document



object --+    
         |    
      dict --+
             |
            Document

Representation of a document in the database.

This is basically just a dictionary with the two additional properties id and rev, which contain the document ID and revision, respectively.



Instance Methods
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__repr__(self)
repr(x)

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __setitem__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties
  id
_id
  rev
_rev

Inherited from object: __class__

Method Details

__init__(self, *args, **kwargs)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Returns:
new empty dictionary

Overrides: dict.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

 
repr(x)
Overrides: dict.__repr__
(inherited documentation)

Property Details

id

_id
Get Method:
unreachable(self) - _id

rev

_rev
Get Method:
unreachable(self) - _rev