summaryrefslogtreecommitdiff
path: root/src/leap/gui/firstrun/providerselect.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-23 05:13:36 +0900
committerkali <kali@leap.se>2012-11-23 05:13:36 +0900
commit7a263b8ee74cc92ba39796cd9ad48395adfa7450 (patch)
treec3837025c602897729c23e298f93ce237776d9c1 /src/leap/gui/firstrun/providerselect.py
parent60ae69dd79fc4a17e54e9f898b04c7130d8b9f6e (diff)
refactor validation mixin; progress until register page
Diffstat (limited to 'src/leap/gui/firstrun/providerselect.py')
-rw-r--r--src/leap/gui/firstrun/providerselect.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/leap/gui/firstrun/providerselect.py b/src/leap/gui/firstrun/providerselect.py
index d029b1db..dffde040 100644
--- a/src/leap/gui/firstrun/providerselect.py
+++ b/src/leap/gui/firstrun/providerselect.py
@@ -1,7 +1,6 @@
"""
Select Provider Page, used in First Run Wizard
"""
-from functools import partial
import logging
import requests
@@ -20,10 +19,9 @@ from leap.util.web import get_https_domain_and_port
logger = logging.getLogger(__name__)
-# XXX check newer version in progress...
-
def delay(obj, method_str):
+ # XXX check newer version in progress.py...
"""
this is a hack to get responsiveness in the ui
"""
@@ -40,6 +38,7 @@ class SelectProviderPage(InlineValidationPage):
def __init__(self, parent=None, providers=None):
super(SelectProviderPage, self).__init__(parent)
+ self.current_page = 'providerselection'
self.setTitle(self.tr("Enter Provider"))
self.setSubTitle(self.tr(
@@ -51,7 +50,6 @@ class SelectProviderPage(InlineValidationPage):
QtGui.QPixmap(APP_LOGO))
self.did_cert_check = False
- self.current_page = 'providerselection'
self.is_done = False
@@ -346,7 +344,7 @@ class SelectProviderPage(InlineValidationPage):
self.is_done = True
yield(("end_sentinel", 100), lambda: None)
- def _inline_validation_ready(self):
+ def on_checks_validation_ready(self):
"""
called after _do_checks has finished.
"""