comparison src/stdui/ui_profile_manager.py @ 1060:aa15453ec54d

core (xmpp), stdui (profile_manager), bridge, frontends: raise an exception if the XMPP connection failed instead of sending a signal
author souliane <souliane@mailoo.org>
date Fri, 23 May 2014 09:59:35 +0200
parents 066308706dc6
children 6ec513ad92c2
comparison
equal deleted inserted replaced
1059:b2b9c184033f 1060:aa15453ec54d
127 127
128 def _changeXMPPPasswordCb(self, data, profile): 128 def _changeXMPPPasswordCb(self, data, profile):
129 xmpp_password = data[xml_tools.formEscape('xmpp_password')] 129 xmpp_password = data[xml_tools.formEscape('xmpp_password')]
130 d = self.host.memory.setParam("Password", xmpp_password, "Connection", profile_key=profile) 130 d = self.host.memory.setParam("Password", xmpp_password, "Connection", profile_key=profile)
131 d.addCallback(lambda dummy: self.host.asyncConnect(profile)) 131 d.addCallback(lambda dummy: self.host.asyncConnect(profile))
132 return {} 132 d.addCallback(lambda dummy: {})
133 d.addErrback(lambda dummy: self._changeXMPPPassword({}, profile))
134 return d