summaryrefslogtreecommitdiff
path: root/backends/objectstore.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-01-28 16:46:44 -0200
committerdrebs <drebs@leap.se>2013-01-28 16:46:44 -0200
commitb25360e22173a56e468b0285bae616491a1b67ca (patch)
tree436789bd977ec121e8ace28ae2ec97eb227ba21a /backends/objectstore.py
parent0a4548d55b22b21d5d54e88a0cd1e5b118b867f7 (diff)
Add CouchServerState for serving Soledad as WSGI app.
Diffstat (limited to 'backends/objectstore.py')
-rw-r--r--backends/objectstore.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/backends/objectstore.py b/backends/objectstore.py
index 588fc7a1..199107af 100644
--- a/backends/objectstore.py
+++ b/backends/objectstore.py
@@ -7,8 +7,13 @@ class ObjectStore(InMemoryDatabase):
A backend for storing u1db data in an object store.
"""
- def __init__(self, replica_uid=None):
- super(ObjectStore, self).__init__(replica_uid)
+ @classmethod
+ def open_database(cls, url, create, document_factory=None):
+ raise NotImplementedError(cls.open_database)
+
+ def __init__(self, replica_uid=None, document_factory=None):
+ super(ObjectStore, self).__init__(replica_uid,
+ document_factory=document_factory)
# sync data in memory with data in object store
if not self._get_doc(self.U1DB_DATA_DOC_ID):
self._init_u1db_data()