summaryrefslogtreecommitdiff
path: root/backends/couch.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-02-12 19:32:06 -0200
committerdrebs <drebs@leap.se>2013-02-12 19:32:06 -0200
commit0133b65a287d007382d96bdc15b83068e681e4ef (patch)
treee9b19b38ab493f57b8ecd6cac00469b279dc275b /backends/couch.py
parentb848bfa450c1882f65d01b2adc57b9c8263539bd (diff)
Small refactor (name change).
Diffstat (limited to 'backends/couch.py')
-rw-r--r--backends/couch.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/couch.py b/backends/couch.py
index d349efaf..30fd449c 100644
--- a/backends/couch.py
+++ b/backends/couch.py
@@ -139,7 +139,7 @@ class CouchDatabase(ObjectStore):
index.add_json(doc_id, doc.get_json())
self._indexes[index_name] = index
# save data in object store
- self._set_u1db_data()
+ self._store_u1db_data()
def close(self):
# TODO: fix this method so the connection is properly closed and
@@ -171,7 +171,7 @@ class CouchDatabase(ObjectStore):
'replica_uid': self._replica_uid}
self._put_doc(doc)
- def _get_u1db_data(self):
+ def _fetch_u1db_data(self):
# retrieve u1db data from couch db
cdoc = self._database.get(self.U1DB_DATA_DOC_ID)
jsonstr = self._database.get_attachment(cdoc, 'u1db_json').getvalue()
@@ -187,7 +187,7 @@ class CouchDatabase(ObjectStore):
# save couch _rev
self._couch_rev = cdoc['_rev']
- def _set_u1db_data(self):
+ def _store_u1db_data(self):
doc = self._factory(doc_id=self.U1DB_DATA_DOC_ID)
doc.content = {
'transaction_log': self._transaction_log,