summaryrefslogtreecommitdiff
path: root/src/leap/gui/firstrun/register.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-27 03:34:08 +0900
committerkali <kali@leap.se>2012-11-27 03:43:46 +0900
commit1bb7e85425f2f427401cd02726c55922874a59a0 (patch)
treea391b1a75efaf96b3b5ee096d36af27f8da90d3e /src/leap/gui/firstrun/register.py
parentd5136a5f3b2aa8b16e8341f2eb99d05993028acf (diff)
login validation inline
Diffstat (limited to 'src/leap/gui/firstrun/register.py')
-rw-r--r--src/leap/gui/firstrun/register.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/leap/gui/firstrun/register.py b/src/leap/gui/firstrun/register.py
index 7ce74892..e85723cb 100644
--- a/src/leap/gui/firstrun/register.py
+++ b/src/leap/gui/firstrun/register.py
@@ -163,7 +163,7 @@ class RegisterUserPage(InlineValidationPage, UserFormMixIn):
if errors:
bad_str = getattr(self, 'bad_string', None)
cur_str = self.userNameLineEdit.text()
- prev_er = getattr(self, 'prevalidation_error', None)
+ #prev_er = getattr(self, 'prevalidation_error', None)
if bad_str is None:
# first time we fall here.
@@ -171,9 +171,9 @@ class RegisterUserPage(InlineValidationPage, UserFormMixIn):
self.bad_string = cur_str
showerr(errors)
else:
- if prev_er:
- showerr(prev_er)
- return
+ #if prev_er:
+ #showerr(prev_er)
+ #return
# not the first time
if cur_str == bad_str:
showerr(errors)
@@ -290,7 +290,6 @@ class RegisterUserPage(InlineValidationPage, UserFormMixIn):
logger.debug('registering user')
yield(("registering with provider", 40), register)
- # set_done??
self.set_done()
yield(("end_sentinel", 0), lambda: None)
@@ -299,8 +298,6 @@ class RegisterUserPage(InlineValidationPage, UserFormMixIn):
after checks
"""
if self.is_done():
- # XXX should disable
- # all entry forms
self.disableFields()
self.cleanup_errormsg()
self.clean_wizard_errors(self.current_page)