comparison frontends/src/primitivus/profile_manager.py @ 423:6c20c76abdcc

backend: - bridge async D-Bus method now automatically manage callback and errback, we just have to return a deferred - getParams, getParamsForCategory and getParamsUI are now asynchronous primitivus: management of asynchronous getParamsUI
author Goffi <goffi@goffi.org>
date Mon, 07 Nov 2011 00:09:22 +0100
parents 5a18c5f08d9b
children 39a8ca1a2675
comparison
equal deleted inserted replaced
422:5a18c5f08d9b 423:6c20c76abdcc
146 self.host.bridge.setParam("Server", JID(new_jid).domain, "Connection", profile) 146 self.host.bridge.setParam("Server", JID(new_jid).domain, "Connection", profile)
147 if old_pass != new_pass: 147 if old_pass != new_pass:
148 self.host.bridge.setParam("Password", new_pass, "Connection", profile) 148 self.host.bridge.setParam("Password", new_pass, "Connection", profile)
149 self.host.plug_profile(profile) 149 self.host.plug_profile(profile)
150 150
151 def getParamError(self): 151 def getParamError(self, ignore):
152 error(_("Can't get profile parameter")) 152 popup = Alert("Error", _("Can't get profile parameter"), ok_cb=self.host.removePopUp)
153 self.host.showPopUp(popup)