comparison src/browser/sat_browser/register.py @ 798:3c5b17a3d86e

browser_side: run login callback before window alert so the background starts to be filled before the user clicks
author souliane <souliane@mailoo.org>
date Wed, 09 Dec 2015 02:33:49 +0100
parents fad9c9f82ae3
children 1f054ba3245e
comparison
equal deleted inserted replaced
797:6f2200d720d5 798:3c5b17a3d86e
209 self.login_warning_msg.setHTML(_('Your login and/or password is incorrect. Please try again.')) 209 self.login_warning_msg.setHTML(_('Your login and/or password is incorrect. Please try again.'))
210 elif result == C.XMPP_AUTH_ERROR: 210 elif result == C.XMPP_AUTH_ERROR:
211 # TODO: call stdui action CHANGE_XMPP_PASSWD_ID as it's done in primitivus 211 # TODO: call stdui action CHANGE_XMPP_PASSWD_ID as it's done in primitivus
212 Window.alert(_(u'Your SàT profile has been authenticated but the associated XMPP account failed to connect. Please use another SàT frontend to set another XMPP password.')) 212 Window.alert(_(u'Your SàT profile has been authenticated but the associated XMPP account failed to connect. Please use another SàT frontend to set another XMPP password.'))
213 elif result == C.PROFILE_LOGGED_REGISTERED_WITH_EXT_JID: 213 elif result == C.PROFILE_LOGGED_REGISTERED_WITH_EXT_JID:
214 self.callback()
214 Window.alert(_('A profile has been created on this Libervia service using your existing XMPP account. Since you are not using our XMPP server, we can not guaranty that all the extra features (blog, directory...) will fully work.')) 215 Window.alert(_('A profile has been created on this Libervia service using your existing XMPP account. Since you are not using our XMPP server, we can not guaranty that all the extra features (blog, directory...) will fully work.'))
215 self.callback()
216 elif result == C.PROFILE_LOGGED: 216 elif result == C.PROFILE_LOGGED:
217 self.callback() 217 self.callback()
218 elif result == C.SESSION_ACTIVE: 218 elif result == C.SESSION_ACTIVE:
219 Window.alert(_('Session already active, this should not happen, please contact the author to fix it.')) 219 Window.alert(_('Session already active, this should not happen, please contact the author to fix it.'))
220 elif result == C.NO_REPLY: 220 elif result == C.NO_REPLY: