diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-08-07 14:59:39 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-08-07 14:59:39 -0300 |
commit | f40e0317949b5ecc471da0fcde42ae269c2664fa (patch) | |
tree | 803cc8d7a491906caefbdcdc5e0f08e020bc403b /src/leap/services/mail/smtpconfig.py | |
parent | 275109e17f53c2fceb21d6f87626762800f53e22 (diff) | |
parent | 52d33ab34cfdb9464b25101843dba3b221aa3b45 (diff) |
Merge remote-tracking branch 'ivan/feature/3403_add-support-for-multiple-schema' into develop
Diffstat (limited to 'src/leap/services/mail/smtpconfig.py')
-rw-r--r-- | src/leap/services/mail/smtpconfig.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/leap/services/mail/smtpconfig.py b/src/leap/services/mail/smtpconfig.py index 30371005..ea0f9c37 100644 --- a/src/leap/services/mail/smtpconfig.py +++ b/src/leap/services/mail/smtpconfig.py @@ -21,7 +21,7 @@ SMTP configuration import logging from leap.common.config.baseconfig import BaseConfig -from leap.services.mail.smtpspec import smtp_config_spec +from leap.services.mail.smtpspec import get_schema logger = logging.getLogger(__name__) @@ -34,11 +34,13 @@ class SMTPConfig(BaseConfig): def __init__(self): BaseConfig.__init__(self) - def _get_spec(self): + def _get_schema(self): """ - Returns the spec object for the specific configuration + Returns the schema corresponding to the version given. + + :rtype: dict or None if the version is not supported. """ - return smtp_config_spec + return get_schema(self._api_version) def get_hosts(self): return self._safe_get_value("hosts") |