diff options
author | Kali Kaneko <kali@leap.se> | 2015-06-09 12:03:26 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-06-15 14:24:20 -0400 |
commit | a0f7f4403c5ce429b6d66087d12411c118dd1328 (patch) | |
tree | 85beb0debbd1c72f66c1b9c1d3f789de56575132 | |
parent | 220e322589601c18cbcb2b06f3b0c77bbd3bf681 (diff) |
[style] minor style fixes for correction
after suggestions in the review
-rw-r--r-- | client/src/leap/soledad/client/api.py | 10 | ||||
-rw-r--r-- | client/src/leap/soledad/client/encdecpool.py | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py index fd91ff8b..6c2b3673 100644 --- a/client/src/leap/soledad/client/api.py +++ b/client/src/leap/soledad/client/api.py @@ -662,9 +662,9 @@ class Soledad(object): self._last_received_docs = docs = self._dbsyncer.received_docs # Post-Sync Hooks - synced_plugin = soledad_interfaces.ISoledadPostSyncPlugin if docs: - suitable_plugins = collect_plugins(synced_plugin) + iface = soledad_interfaces.ISoledadPostSyncPlugin + suitable_plugins = collect_plugins(iface) for plugin in suitable_plugins: watched = plugin.watched_doc_types r = [filter( @@ -805,13 +805,15 @@ class Soledad(object): def raw_sqlcipher_query(self, *args, **kw): """ - Run a raw sqlcipher query in the local database, and return the result. + Run a raw sqlcipher query in the local database, and return a deferred + that will be fired with the result. """ return self._dbpool.runQuery(*args, **kw) def raw_sqlcipher_operation(self, *args, **kw): """ - Run a raw sqlcipher operation in the local database, and return None. + Run a raw sqlcipher operation in the local database, and return a + deferred that will be fired with None. """ return self._dbpool.runOperation(*args, **kw) diff --git a/client/src/leap/soledad/client/encdecpool.py b/client/src/leap/soledad/client/encdecpool.py index eff53e28..f81cd2d1 100644 --- a/client/src/leap/soledad/client/encdecpool.py +++ b/client/src/leap/soledad/client/encdecpool.py @@ -579,7 +579,6 @@ class SyncDecrypterPool(SyncEncryptDecryptPool): query += " ORDER BY %s %s" % (order_by, order) return self._runQuery(query) - @defer.inlineCallbacks def _get_insertable_docs(self): """ |