diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-08-07 14:50:16 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-08-07 14:55:02 -0300 |
commit | 959c24f3eae90f5b306aa99401bc11c5021b0faa (patch) | |
tree | 8043baad919ae78a54d2ff8ee49eaa0f7c12f4f6 /src/leap/services/mail/smtpconfig.py | |
parent | 088db436880edd8c8ae51f792fc707d962927485 (diff) |
Define abstract methods from BaseConfig.
Diffstat (limited to 'src/leap/services/mail/smtpconfig.py')
-rw-r--r-- | src/leap/services/mail/smtpconfig.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/leap/services/mail/smtpconfig.py b/src/leap/services/mail/smtpconfig.py index ca974fcf..ea0f9c37 100644 --- a/src/leap/services/mail/smtpconfig.py +++ b/src/leap/services/mail/smtpconfig.py @@ -33,7 +33,14 @@ class SMTPConfig(BaseConfig): def __init__(self): BaseConfig.__init__(self) - self._get_schema = get_schema + + def _get_schema(self): + """ + Returns the schema corresponding to the version given. + + :rtype: dict or None if the version is not supported. + """ + return get_schema(self._api_version) def get_hosts(self): return self._safe_get_value("hosts") |