Home | Trees | Indices | Help |
|
---|
|
object --+ | Mapping --+ | Document
Nested Classes | |
__metaclass__ |
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Methods | |||
|
|||
|
|||
|
|||
Properties | |
id The document ID |
|
basestring |
rev The document revision. |
Inherited from |
Method Details |
|
|
Return the fields as a list of (name, value) tuples. This method is provided to enable easy conversion to native dictionary objects, for example to allow use of mapping.Document instances with client.Database.update. >>> class Post(Document): ... title = TextField() ... author = TextField() >>> post = Post(id='foo-bar', title='Foo bar', author='Joe') >>> sorted(post.items()) [('_id', 'foo-bar'), ('author', u'Joe'), ('title', u'Foo bar')]
|
|
Execute a CouchDB temporary view and map the result values back to objects of this mapping. Note that by default, any properties of the document that are not included in the values of the view will be treated as if they were missing from the document. If you want to load the full document for every row, set the include_docs option to True. |
Execute a CouchDB named view and map the result values back to objects of this mapping. Note that by default, any properties of the document that are not included in the values of the view will be treated as if they were missing from the document. If you want to load the full document for every row, set the include_docs option to True. |
Property Details |
revThe document revision.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Apr 15 16:22:43 2010 | http://epydoc.sourceforge.net |