comparison src/stdui/ui_profile_manager.py @ 2142:be96beb7ca14

core, bridge, frontends: renamed asyncConnect to connect, and added options parameters (not used yet)
author Goffi <goffi@goffi.org>
date Mon, 06 Feb 2017 22:54:43 +0100
parents 52bd463e6fe7
children 8b37a62336c3
comparison
equal deleted inserted replaced
2141:35762e9ce8b9 2142:be96beb7ca14
107 return {'xmlui': form_ui.toXml()} 107 return {'xmlui': form_ui.toXml()}
108 108
109 def _changeXMPPPasswordCb(self, data, profile): 109 def _changeXMPPPasswordCb(self, data, profile):
110 xmpp_password = data[xml_tools.formEscape('xmpp_password')] 110 xmpp_password = data[xml_tools.formEscape('xmpp_password')]
111 d = self.host.memory.setParam("Password", xmpp_password, "Connection", profile_key=profile) 111 d = self.host.memory.setParam("Password", xmpp_password, "Connection", profile_key=profile)
112 d.addCallback(lambda dummy: self.host.asyncConnect(profile)) 112 d.addCallback(lambda dummy: self.host.connect(profile))
113 d.addCallback(lambda dummy: {}) 113 d.addCallback(lambda dummy: {})
114 d.addErrback(lambda dummy: self._changeXMPPPassword({}, profile)) 114 d.addErrback(lambda dummy: self._changeXMPPPassword({}, profile))
115 return d 115 return d