comparison frontends/src/quick_frontend/quick_app.py @ 1043:066308706dc6

core, stdui (profile manager), quick_app: ask for another XMPP password when profile authentication succeed but XMPP connection fails
author souliane <souliane@mailoo.org>
date Wed, 21 May 2014 23:15:01 +0200
parents 5197600a1e13
children 0a9986452bba
comparison
equal deleted inserted replaced
1042:59de0c7a28ec 1043:066308706dc6
234 if not self.check_profile(profile): 234 if not self.check_profile(profile):
235 return 235 return
236 log.debug(_("Connection Error")) 236 log.debug(_("Connection Error"))
237 self.disconnected(profile) 237 self.disconnected(profile)
238 if error_type == "AUTH_ERROR": 238 if error_type == "AUTH_ERROR":
239 self.showDialog(_("Can't connect to account, please check your password"), _("Connection error"), "error") 239 self.launchAction(C.CHANGE_XMPP_PASSWD_ID, {}, profile_key=profile)
240 else: 240 else:
241 log.error(_('FIXME: error_type %s not implemented') % error_type) 241 log.error(_('FIXME: error_type %s not implemented') % error_type)
242 242
243 def newContact(self, JabberId, attributes, groups, profile): 243 def newContact(self, JabberId, attributes, groups, profile):
244 if not self.check_profile(profile): 244 if not self.check_profile(profile):