summaryrefslogtreecommitdiff
path: root/src/leap/gui/firstrun/regvalidation.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-08 08:37:24 +0900
committerkali <kali@leap.se>2012-11-08 08:37:24 +0900
commitb84007d8fec8c949ba4ac1d26695c710a210d797 (patch)
treee9552e9925c103618e2ae6a9161105ab9e1317bd /src/leap/gui/firstrun/regvalidation.py
parent8a70d249df9782a370c00a37de9a7d3af568c0f5 (diff)
more careful error catching during registration.
added a twisted server that fakes some of the provider interaction.
Diffstat (limited to 'src/leap/gui/firstrun/regvalidation.py')
-rw-r--r--src/leap/gui/firstrun/regvalidation.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/leap/gui/firstrun/regvalidation.py b/src/leap/gui/firstrun/regvalidation.py
index 42b9ccd5..6cf150b6 100644
--- a/src/leap/gui/firstrun/regvalidation.py
+++ b/src/leap/gui/firstrun/regvalidation.py
@@ -39,14 +39,22 @@ class RegisterUserValidationPage(ValidationPage):
we initialize the srp protocol register
and try to register user.
"""
+ print 'register user checks'
+
wizard = self.wizard()
domain = self.field('provider_domain')
username = self.field('userName')
password = self.field('userPassword')
- update_signal.emit("head_sentinel")
+ # XXX use pause_for_user from providerinfo
+ update_signal.emit("head_sentinel", 0)
update_signal.emit("registering with provider", 40)
- time.sleep(4)
+ time.sleep(0.5)
+ update_signal.emit("registering 2", 60)
+ time.sleep(1)
+ update_signal.emit("end_sentinel", 100)
+ time.sleep(0.5)
+ return
if wizard and wizard.debug_server:
# We're debugging