diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-07-02 12:14:59 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-07-14 12:14:20 -0300 |
commit | 13c0b7cac822a33f7395e3f099a2d37251e2c759 (patch) | |
tree | dce4f3fa80a3b6e9fade199fdff30a5c055a8cab /src/leap/bitmask/backend/leapbackend.py | |
parent | cf75e3575c33249a6f756dceb423c6ec7f6cd50e (diff) |
Ask the backend for the country code.
Remove global variable in favor of a helper method that returns the
country code.
Needed in order to split backend/frontend.
Diffstat (limited to 'src/leap/bitmask/backend/leapbackend.py')
-rw-r--r-- | src/leap/bitmask/backend/leapbackend.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/leap/bitmask/backend/leapbackend.py b/src/leap/bitmask/backend/leapbackend.py index 4794d988..3bc7a513 100644 --- a/src/leap/bitmask/backend/leapbackend.py +++ b/src/leap/bitmask/backend/leapbackend.py @@ -256,6 +256,19 @@ class LeapBackend(Backend): """ self._eip.get_gateways_list(domain) + def eip_get_gateway_country_code(self, domain): + """ + Signal a list of gateways for the given provider. + + :param domain: the domain to get the gateways. + :type domain: str + + Signals: + eip_get_gateways_list -> str + eip_no_gateway + """ + self._eip.get_gateway_country_code(domain) + def eip_get_initialized_providers(self, domains): """ Signal a list of the given domains and if they are initialized or not. |