Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/frontends/src/primitivus/profile_manager.py Sun Nov 06 15:19:51 2011 +0100 +++ b/frontends/src/primitivus/profile_manager.py Mon Nov 07 00:09:22 2011 +0100 @@ -148,5 +148,6 @@ self.host.bridge.setParam("Password", new_pass, "Connection", profile) self.host.plug_profile(profile) - def getParamError(self): - error(_("Can't get profile parameter")) + def getParamError(self, ignore): + popup = Alert("Error", _("Can't get profile parameter"), ok_cb=self.host.removePopUp) + self.host.showPopUp(popup)