summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-07-14 22:12:20 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-08-11 17:00:22 +0200
commitee459de93e275aa303d505e3012b4d5602eae967 (patch)
tree985684ef9d7c7e809e7505f67fd68690572ab9ba /service/pixelated/adapter
parent53b8653ead645247b1afc24645db3ea868d46378 (diff)
fix pep8 in order to run tests
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r--service/pixelated/adapter/listeners/mailbox_indexer_listener.py1
-rw-r--r--service/pixelated/adapter/services/mailboxes.py2
-rw-r--r--service/pixelated/adapter/soledad/soledad_facade_mixin.py3
-rw-r--r--service/pixelated/adapter/soledad/soledad_writer_mixin.py1
4 files changed, 5 insertions, 2 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