diff options
author | drebs <drebs@leap.se> | 2012-12-18 18:51:01 -0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2012-12-18 18:51:01 -0200 |
commit | 6306a61d8c6c840a09ea9aa26e439a40dc9b5a9a (patch) | |
tree | 5d63e737a7f3169f1fece8afef5d10a4a458dd0a /backends/objectstore.py | |
parent | 2d4fc3ee887fd52ac06fdd6f99bdc4b445a79463 (diff) |
Refactor and symmetric encryption
Diffstat (limited to 'backends/objectstore.py')
-rw-r--r-- | backends/objectstore.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/backends/objectstore.py b/backends/objectstore.py index 298bdda3..a8e139f7 100644 --- a/backends/objectstore.py +++ b/backends/objectstore.py @@ -1,8 +1,7 @@ import uuid from u1db.backends import CommonBackend -from u1db import errors -from soledad import SyncLog, TransactionLog -from soledad.backends.leap import LeapDocument +from u1db import errors, Document +from soledad.util import SyncLog, TransactionLog class ObjectStore(CommonBackend): @@ -11,7 +10,7 @@ class ObjectStore(CommonBackend): # This initialization method should be called after the connection # with the database is established, so it can ensure that u1db data is # configured and up-to-date. - self.set_document_factory(LeapDocument) + self.set_document_factory(Document) self._sync_log = SyncLog() self._transaction_log = TransactionLog() self._ensure_u1db_data() |