I am trying to add a user in the "_security" document of a database with python-couchdb. I am getting an error because the "_security" document doesn't have an "_id" attribute.
import couchdb
couch=couchdb.Server("http://admin:admin@localhost:5984")
couch["db"]["_security"]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/couchdb/client.py", line 977, in __repr__
return '<%s %r@%r %r>' % (type(self).__name__, self.id, self.rev,
File "/usr/local/lib/python2.7/dist-packages/couchdb/client.py", line 987, in id
return self['_id']
KeyError: '_id'