diff options
author | sw00 <sett.wai@gmail.com> | 2015-11-09 22:39:14 -0200 |
---|---|---|
committer | sw00 <sett.wai@gmail.com> | 2015-11-09 22:39:14 -0200 |
commit | e2c83c13ba0ca1edf94b5af0408f17c0d1aa4e95 (patch) | |
tree | b546645e212e9bc0ef1e7ff118fc9f371dc36335 /service/pixelated/adapter | |
parent | b230d58eaa32a7f115881cffbf5637d98d1e8299 (diff) |
use mail_service to inject account_email into root_resource
instead of using leap_session, mail_service can be used to get the
account email.
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r-- | service/pixelated/adapter/services/mail_service.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/pixelated/adapter/services/mail_service.py b/service/pixelated/adapter/services/mail_service.py index 44c4c145..53f7615e 100644 --- a/service/pixelated/adapter/services/mail_service.py +++ b/service/pixelated/adapter/services/mail_service.py @@ -23,10 +23,11 @@ import os class MailService(object): - def __init__(self, mail_sender, mail_store, search_engine): + def __init__(self, mail_sender, mail_store, search_engine, account_email): self.mail_store = mail_store self.search_engine = search_engine self.mail_sender = mail_sender + self.account_email = account_email @defer.inlineCallbacks def all_mails(self): |