Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_app.py @ 1636:e00f450c25fc
primitivus: fixed progress panel
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 20 Nov 2015 01:57:18 +0100 |
parents | 2071d5cec5d6 |
children | ad2ad28b8923 |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py Fri Nov 20 01:57:18 2015 +0100 +++ b/frontends/src/quick_frontend/quick_app.py Fri Nov 20 01:57:18 2015 +0100 @@ -249,6 +249,9 @@ self.registerSignal("entityDataUpdated") self.registerSignal("askConfirmation") self.registerSignal("actionResult") + self.registerSignal("progressStarted") + self.registerSignal("progressFinished") + self.registerSignal("progressError") self.registerSignal("actionResultExt", self.actionResultHandler) self.registerSignal("roomJoined", iface="plugin") self.registerSignal("roomLeft", iface="plugin") @@ -646,6 +649,15 @@ else: log.warning("Unmanaged PubSub event type {}".format(event_type)) + def progressStartedHandler(self, pid, metadata, profile): + log.info(u"Progress {} started".format(pid)) + + def progressFinishedHandler(self, pid, metadata, profile): + log.info(u"Progress {} finished".format(pid)) + + def progressErrorHandler(self, pid, err_msg, profile): + log.warning(u"Progress {pid} error: {err_msg}".format(pid=pid, err_msg=err_msg)) + def _subscribe_cb(self, answer, data): entity, profile = data type_ = "subscribed" if answer else "unsubscribed"