diff options
author | Tomas Touceda <chiiph@leap.se> | 2013-04-09 09:22:43 -0300 |
---|---|---|
committer | Tomas Touceda <chiiph@leap.se> | 2013-04-09 09:22:43 -0300 |
commit | b48f78b47fd4bd0cd05cc7f588b878458e0ead6d (patch) | |
tree | cba66690bbe1ca39927f017c7d2ee9f5b85654d3 /src/leap/config/providerconfig.py | |
parent | 5a3898eeb7c2ed3bb5eb1f6b72bb2d782e579f6d (diff) | |
parent | 785bdfaceb9f3d392f162dd818fea9098d9375a4 (diff) |
Merge remote-tracking branch 'kali/bug/wizard-text-improvements' into develop
Diffstat (limited to 'src/leap/config/providerconfig.py')
-rw-r--r-- | src/leap/config/providerconfig.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/leap/config/providerconfig.py b/src/leap/config/providerconfig.py index 71b2856f..7651863b 100644 --- a/src/leap/config/providerconfig.py +++ b/src/leap/config/providerconfig.py @@ -65,6 +65,11 @@ class ProviderConfig(BaseConfig): return self._safe_get_value("domain") def get_enrollment_policy(self): + """ + Returns the enrollment policy + + @rtype: string + """ return self._safe_get_value("enrollment_policy") def get_languages(self): @@ -75,8 +80,21 @@ class ProviderConfig(BaseConfig): return self._safe_get_value("name") def get_services(self): + """ + Returns a list with the services supported by the + current provider + + @rtype: list + """ return self._safe_get_value("services") + def get_services_string(self): + """ + Returns a string with the services supported by the current provider, + ready to be shown to the user + """ + return ", ".join(self.get_services()) + def get_ca_cert_path(self, about_to_download=False): """ Returns the path to the certificate for the current provider |