summaryrefslogtreecommitdiff
path: root/backends/couch.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-02-09 19:25:44 -0200
committerdrebs <drebs@leap.se>2013-02-09 20:21:48 -0200
commitf99762eef055742d841bae965ef3b1eec2ca4631 (patch)
treeb5af3f8a5ddb325110de07e9f4355c00f5b28144 /backends/couch.py
parentbc6d05f8333ee775aa373817e2ece6323c62186f (diff)
Enforce doc.rev as bytes to match Twisted expectations.
Diffstat (limited to 'backends/couch.py')
-rw-r--r--backends/couch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/couch.py b/backends/couch.py
index 8757f5af..d349efaf 100644
--- a/backends/couch.py
+++ b/backends/couch.py
@@ -56,13 +56,13 @@ class CouchDatabase(ObjectStore):
self._dbname = database
# this will ensure that transaction and sync logs exist and are
# up-to-date.
- self.set_document_factory(LeapDocument)
try:
self._database = self._server[database]
except ResourceNotFound:
self._server.create(database)
self._database = self._server[database]
- super(CouchDatabase, self).__init__(replica_uid=replica_uid)
+ super(CouchDatabase, self).__init__(replica_uid=replica_uid,
+ document_factory=LeapDocument)
#-------------------------------------------------------------------------
# methods from Database