lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

wrap schema.Document.view results #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
When calling the view method on a subclass of schema.Document with 
eager=True and include_docs=True the results are not wrapped 
(client.Documents are returned instead of instances of the 
schema.Document subclass). If called with eager=True and 
include_docs=False the results are properly wrapped.

What is the expected output? What do you see instead?
>>> list(Document.view(db, '_all_docs', eager=True, 
include_docs=True))[0].__class__
Got: <class 'couchdb.client.Document'>
Expect: <class 'couchdb.schema.Document'>

What version of the product are you using? On what operating system?
SVN

Original issue reported on code.google.com by mike%min...@gtempaccount.com on 3 Jun 2009 at 11:40

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, fixed in r154.

Original comment by cmlenz on 29 Jun 2009 at 12:44