comparison src/browser/libervia_main.py @ 457:b55bc50756fa

browser side: select the "Login" tab when using auto-connect feature
author souliane <souliane@mailoo.org>
date Thu, 29 May 2014 17:32:32 +0200
parents da2a7f2b34c9
children 1eeed8028199
comparison
equal deleted inserted replaced
456:da2a7f2b34c9 457:b55bc50756fa
379 """This method retrieve the eventual URL parameters to auto-connect the user. 379 """This method retrieve the eventual URL parameters to auto-connect the user.
380 @param skip_validation: if True, set the form values but do not validate it 380 @param skip_validation: if True, set the form values but do not validate it
381 """ 381 """
382 params = getURLParams(Window.getLocation().getSearch()) 382 params = getURLParams(Window.getLocation().getSearch())
383 if "login" in params: 383 if "login" in params:
384 self._register_box._form.right_side.selectTab(0)
384 self._register_box._form.login_box.setText(params["login"]) 385 self._register_box._form.login_box.setText(params["login"])
385 self._register_box._form.login_pass_box.setFocus(True) 386 self._register_box._form.login_pass_box.setFocus(True)
386 if "passwd" in params: 387 if "passwd" in params:
387 # try to connect 388 # try to connect
388 self._register_box._form.login_pass_box.setText(params["passwd"]) 389 self._register_box._form.login_pass_box.setText(params["passwd"])