From cb971e9f6a722a20c4fec278dc56ce8ec30740ab Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 8 Jul 2014 12:57:08 -0300 Subject: Add doc for syncers dictionary. --- client/src/leap/soledad/client/sqlcipher.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/src/leap') 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 = {'': ('', syncer), ...} self._syncers = {} @classmethod -- cgit v1.2.3