summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2012-12-24 10:13:12 -0200
committerdrebs <drebs@leap.se>2012-12-24 10:13:12 -0200
commit277f17aa7b7bbcc48583149a3d72d8621f83c0ff (patch)
treeac7eb9e8f5d993732e769607903ef626518749cd
parent8ec2353d688a6064e5c2cd69745e246c12707b95 (diff)
Document ObjectStore
-rw-r--r--src/leap/soledad/backends/objectstore.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/leap/soledad/backends/objectstore.py b/src/leap/soledad/backends/objectstore.py
index a8e139f7..61445a1f 100644
--- a/src/leap/soledad/backends/objectstore.py
+++ b/src/leap/soledad/backends/objectstore.py
@@ -5,6 +5,9 @@ from soledad.util import SyncLog, TransactionLog
class ObjectStore(CommonBackend):
+ """
+ A backend for storing u1db data in an object store.
+ """
def __init__(self):
# This initialization method should be called after the connection
@@ -153,9 +156,13 @@ class ObjectStore(CommonBackend):
raise errors.InvalidGeneration
return trans_id
+ #-------------------------------------------------------------------------
+ # methods specific for object stores
+ #-------------------------------------------------------------------------
+
def _ensure_u1db_data(self):
"""
- Guarantee that u1db data exists in store.
+ Guarantee that u1db data (logs and replica info) exists in store.
"""
if not self._is_initialized():
self._initialize()