summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/account.py
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-09-08 02:01:14 -0700
committerelijah <elijah@riseup.net>2014-09-19 14:23:14 -0700
commit6166ffedcae0763f3c00076c79e74847f5c80823 (patch)
treecb649abc87ed6030c20ccdb9ac95dce51b2f1ec5 /src/leap/bitmask/gui/account.py
parent4e7c4b48b4255ceac06900fa9e65824c52e15ba7 (diff)
single pref win: moved password change UI to a separate window, opened from account page in preferences.
Diffstat (limited to 'src/leap/bitmask/gui/account.py')
-rw-r--r--src/leap/bitmask/gui/account.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/leap/bitmask/gui/account.py b/src/leap/bitmask/gui/account.py
index b08053a9..ae8127c0 100644
--- a/src/leap/bitmask/gui/account.py
+++ b/src/leap/bitmask/gui/account.py
@@ -19,6 +19,7 @@ A frontend GUI object to hold the current username and domain.
from leap.bitmask.util import make_address
from leap.bitmask.config.leapsettings import LeapSettings
+from leap.bitmask.services import EIP_SERVICE, MX_SERVICE
class Account():
@@ -33,11 +34,16 @@ class Account():
self.address = self.domain
def services(self):
- """
- returns a list of service name strings
+ """
+ returns a list of service name strings
- TODO: this should depend not just on the domain
- """
- return self._settings.get_enabled_services(self.domain)
+ TODO: this should depend not just on the domain
+ """
+ return self._settings.get_enabled_services(self.domain)
+ def is_email_enabled(self):
+ MX_SERVICE in self.services()
+
+ def is_eip_enabled(self):
+ EIP_SERVICE in self.services()