diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-08-19 16:45:25 -0300 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-08-19 16:45:25 -0300 |
commit | 40d4303cadb89c5a0a86199a618626095f625c4c (patch) | |
tree | 28b50eabb377396e6b85f272a2fc9d8baa258cfe /service/app/adapter | |
parent | c2079b687ee88632f24fdf31a251c11f7d695a13 (diff) |
leap_home to be user home and reading certs (self signed) from within project
Diffstat (limited to 'service/app/adapter')
-rw-r--r-- | service/app/adapter/mail_service.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/app/adapter/mail_service.py b/service/app/adapter/mail_service.py index 1d6710af..0704f0bb 100644 --- a/service/app/adapter/mail_service.py +++ b/service/app/adapter/mail_service.py @@ -18,7 +18,7 @@ class MailService: self.password = 'testpassword' self.server_name = 'example.wazokazi.is' self.mailbox_name = 'INBOX' - self.leapdir = os.path.join(os.path.abspath("."), "leap") + self.certs_home = os.path.join(os.path.abspath("."), "leap") self.tags = Tags() self._open_leap_session() except: @@ -26,7 +26,7 @@ class MailService: raise def _open_leap_session(self): - self.leap_config = LeapConfig(leap_home=self.leapdir) + self.leap_config = LeapConfig(certs_home=self.certs_home) self.provider = LeapProvider(self.server_name, self.leap_config) self.leap_session = LeapSessionFactory(self.provider).create(LeapCredentials(self.username, self.password)) self.account = self.leap_session.account |