Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
1635:591e04f0103c | 1636:e00f450c25fc |
---|---|
247 self.registerSignal("paramUpdate") | 247 self.registerSignal("paramUpdate") |
248 self.registerSignal("contactDeleted") | 248 self.registerSignal("contactDeleted") |
249 self.registerSignal("entityDataUpdated") | 249 self.registerSignal("entityDataUpdated") |
250 self.registerSignal("askConfirmation") | 250 self.registerSignal("askConfirmation") |
251 self.registerSignal("actionResult") | 251 self.registerSignal("actionResult") |
252 self.registerSignal("progressStarted") | |
253 self.registerSignal("progressFinished") | |
254 self.registerSignal("progressError") | |
252 self.registerSignal("actionResultExt", self.actionResultHandler) | 255 self.registerSignal("actionResultExt", self.actionResultHandler) |
253 self.registerSignal("roomJoined", iface="plugin") | 256 self.registerSignal("roomJoined", iface="plugin") |
254 self.registerSignal("roomLeft", iface="plugin") | 257 self.registerSignal("roomLeft", iface="plugin") |
255 self.registerSignal("roomUserJoined", iface="plugin") | 258 self.registerSignal("roomUserJoined", iface="plugin") |
256 self.registerSignal("roomUserLeft", iface="plugin") | 259 self.registerSignal("roomUserLeft", iface="plugin") |
644 wid.deleteEntryIfPresent(service_s, node, data['id'], profile) | 647 wid.deleteEntryIfPresent(service_s, node, data['id'], profile) |
645 pass | 648 pass |
646 else: | 649 else: |
647 log.warning("Unmanaged PubSub event type {}".format(event_type)) | 650 log.warning("Unmanaged PubSub event type {}".format(event_type)) |
648 | 651 |
652 def progressStartedHandler(self, pid, metadata, profile): | |
653 log.info(u"Progress {} started".format(pid)) | |
654 | |
655 def progressFinishedHandler(self, pid, metadata, profile): | |
656 log.info(u"Progress {} finished".format(pid)) | |
657 | |
658 def progressErrorHandler(self, pid, err_msg, profile): | |
659 log.warning(u"Progress {pid} error: {err_msg}".format(pid=pid, err_msg=err_msg)) | |
660 | |
649 def _subscribe_cb(self, answer, data): | 661 def _subscribe_cb(self, answer, data): |
650 entity, profile = data | 662 entity, profile = data |
651 type_ = "subscribed" if answer else "unsubscribed" | 663 type_ = "subscribed" if answer else "unsubscribed" |
652 self.bridge.subscription(type_, unicode(entity.bare), profile_key=profile) | 664 self.bridge.subscription(type_, unicode(entity.bare), profile_key=profile) |
653 | 665 |