summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2014-07-08 12:57:08 -0300
committerdrebs <drebs@leap.se>2014-07-08 12:57:08 -0300
commitcb971e9f6a722a20c4fec278dc56ce8ec30740ab (patch)
tree490f67dee4fe6a68d0da921d05bdea42607264cb
parent50374367b9615b9a0a87153374d9bfd21fd237af (diff)
Add doc for syncers dictionary.
-rw-r--r--client/src/leap/soledad/client/sqlcipher.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/leap/soledad/client/sqlcipher.py b/client/src/leap/soledad/client/sqlcipher.py
index 38d5e7ec..6f32ee76 100644
--- a/client/src/leap/soledad/client/sqlcipher.py
+++ b/client/src/leap/soledad/client/sqlcipher.py
@@ -269,6 +269,12 @@ class SQLCipherDatabase(sqlite_backend.SQLitePartialExpandDatabase):
has_conflicts=has_conflicts,
syncable=syncable)
self.set_document_factory(factory)
+ # we store syncers in a dictionary indexed by the target URL. We also
+ # store a hash of the auth info in case auth info expires and we need
+ # to rebuild the syncer for that target. The final self._syncers
+ # format is the following:
+ #
+ # self._syncers = {'<url>': ('<auth_hash>', syncer), ...}
self._syncers = {}
@classmethod