summaryrefslogtreecommitdiff
path: root/backends/objectstore.py
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
commite6fc834f64863a7b3b9a60e540107bbcbd554981 (patch)
treeccf42150289064dba9d6a02e697253555821d7ef /backends/objectstore.py
parente0164aba2764ed36a24d7638b05c3075852ea3c1 (diff)
Document ObjectStore
Diffstat (limited to 'backends/objectstore.py')
-rw-r--r--backends/objectstore.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/backends/objectstore.py b/backends/objectstore.py
index a8e139f7..61445a1f 100644
--- a/backends/objectstore.py
+++ b/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()