histrio / py-couchdb

Modern pure python CouchDB Client.
https://pycouchdb.readthedocs.org/
Other
120 stars 43 forks source link

all throws KeyError exception when include_docs = False #36

Closed mattbgold closed 9 years ago

mattbgold commented 10 years ago

I tried using .all without the include_docs parameter, but the following line yield wrapper(row['doc']) references 'doc' which does not exist in the returned json when include_docs is False.

niwinz commented 10 years ago

The current method is really not prepared for return other thing that docs.

If you want other behavior, pull-request is welcome!

niwinz commented 10 years ago

This should be fixed with https://github.com/niwibe/py-couchdb/commit/e35bc88786b37378a08f5850ce7607545d875946#diff-d41d8cd98f00b204e9800998ecf8427e

histrio commented 9 years ago

@mattbgold This problem is still relevant?