I'd like to know why the rev property of the couchdb.mapping.Document class is read-only attribute. Even id attribute can be set, and I need in my project to create a new Document with rev, which I obtain from CouchDB view. I know that rev is generated in CouchDB, but that's a pity that creators didn't predict such an exception. Moreover, in my humble opinion there should be a get method for the Document class with paramter: ids - it is many identifiers of documents.
@property
def rev(self):
"""The document revision.
:rtype: basestring
"""
if hasattr(self._data, 'rev'): # When data is client.Document
return self._data.rev
return self._data.get('_rev')