diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-07-14 22:12:20 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:22 +0200 |
commit | ee459de93e275aa303d505e3012b4d5602eae967 (patch) | |
tree | 985684ef9d7c7e809e7505f67fd68690572ab9ba /service/pixelated | |
parent | 53b8653ead645247b1afc24645db3ea868d46378 (diff) |
fix pep8 in order to run tests
Diffstat (limited to 'service/pixelated')
5 files changed, 5 insertions, 4 deletions
diff --git a/service/pixelated/adapter/listeners/mailbox_indexer_listener.py b/service/pixelated/adapter/listeners/mailbox_indexer_listener.py index 0178ee54..3af4e62e 100644 --- a/service/pixelated/adapter/listeners/mailbox_indexer_listener.py +++ b/service/pixelated/adapter/listeners/mailbox_indexer_listener.py @@ -16,6 +16,7 @@ from twisted.internet import defer + class MailboxIndexerListener(object): """ Listens for new mails, keeping the index updated """ diff --git a/service/pixelated/adapter/services/mailboxes.py b/service/pixelated/adapter/services/mailboxes.py index 1069fc1c..4d90f0c6 100644 --- a/service/pixelated/adapter/services/mailboxes.py +++ b/service/pixelated/adapter/services/mailboxes.py @@ -26,7 +26,7 @@ class Mailboxes(object): self.querier = soledad_querier self.search_engine = search_engine # for mailbox_name in account.mailboxes: - # MailboxIndexerListener.listen(self.account, mailbox_name, soledad_querier) + # MailboxIndexerListener.listen(self.account, mailbox_name, soledad_querier) @defer.inlineCallbacks def index_mailboxes(self): diff --git a/service/pixelated/adapter/soledad/soledad_facade_mixin.py b/service/pixelated/adapter/soledad/soledad_facade_mixin.py index f4198b5c..b58bb02f 100644 --- a/service/pixelated/adapter/soledad/soledad_facade_mixin.py +++ b/service/pixelated/adapter/soledad/soledad_facade_mixin.py @@ -16,6 +16,7 @@ from twisted.internet import defer + class SoledadDbFacadeMixin(object): @defer.inlineCallbacks @@ -47,7 +48,7 @@ class SoledadDbFacadeMixin(object): @defer.inlineCallbacks def get_recent_by_mbox(self, mbox): defer.returnValue( - (yield self.soledad.get_from_index('by-type-and-mbox', 'rct', mbox) if mbox else [])) + (yield self.soledad.get_from_index('by-type-and-mbox', 'rct', mbox) if mbox else [])) def put_doc(self, doc): return self.soledad.put_doc(doc) diff --git a/service/pixelated/adapter/soledad/soledad_writer_mixin.py b/service/pixelated/adapter/soledad/soledad_writer_mixin.py index 3e732d9b..ed18c0d0 100644 --- a/service/pixelated/adapter/soledad/soledad_writer_mixin.py +++ b/service/pixelated/adapter/soledad/soledad_writer_mixin.py @@ -17,6 +17,7 @@ from pixelated.adapter.soledad.soledad_facade_mixin import SoledadDbFacadeMixin from twisted.internet import defer + class SoledadWriterMixin(SoledadDbFacadeMixin, object): @defer.inlineCallbacks diff --git a/service/pixelated/config/services.py b/service/pixelated/config/services.py index 694e3180..93f31545 100644 --- a/service/pixelated/config/services.py +++ b/service/pixelated/config/services.py @@ -40,8 +40,6 @@ class Services(object): yield self.post_setup(soledad_querier, leap_session) - - @defer.inlineCallbacks def post_setup(self, soledad_querier, leap_session): self.search_engine.index_mails( |