Closed GoogleCodeExporter closed 8 years ago
Hi,
This is not a problem: documents are represented as pure dicts in CouchDB
Python query functions and do not have support of object notation access to
attributes as Javascript one provides. Your map function should be
def foo(doc):
yield doc['_id'], 42
to work properly.
Reason that error had raised on any attribute access is a specific of lazy
initialization when temporary view had executed only when any information from
it was requested.
P.S. q=some_database.query(map_fun=mapfunc) should also has language argument
because default expected language of queries is javascript, not python.
Original comment by kxepal
on 15 Apr 2012 at 10:43
Thank you!
Original comment by christop...@gmail.com
on 23 Apr 2012 at 8:17
Original comment by kxepal
on 12 Oct 2012 at 12:18
Original issue reported on code.google.com by
christop...@gmail.com
on 15 Apr 2012 at 8:56