Home | Trees | Indices | Help |
|
---|
|
object --+ | Schema --+ | Document
Nested Classes | |
__metaclass__ |
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Methods | |||
|
|||
|
|||
|
|||
Properties | |
id | |
rev | |
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 schema.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 schema. 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'd rather want to load the full
document for every row, set the |
Execute a CouchDB named view and map the result values back to objects of this schema. 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'd rather want to load the full
document for every row, set the |
Property Details |
rev
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jan 21 14:27:21 2009 | http://epydoc.sourceforge.net |