Mercurial > libervia-backend
diff sat_bridge/DBus.py @ 25:53e921c8a357
new plugin: gateways plugin, and first implementation of findGateways
- test menu in Wix
- new actionResultExt method, for sending dictionary of dictionaries
- new getNextId method, for accessing sat ids from plugins.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 04 Dec 2009 08:47:44 +0100 |
parents | bb72c29f3432 |
children | 6491b7956c80 |
line wrap: on
line diff
--- a/sat_bridge/DBus.py Tue Dec 01 07:55:46 2009 +0100 +++ b/sat_bridge/DBus.py Fri Dec 04 08:47:44 2009 +0100 @@ -78,6 +78,11 @@ def actionResult(self, type, id, data): debug("result of action: id = [%s] type = %s data = %s", id, type, data) + @dbus.service.signal(const_INT_PREFIX+const_REQ_SUFFIX, + signature='ssa{sa{ss}}') + def actionResultExt(self, type, id, data): + debug("extended result of action: id = [%s] type = %s data = %s", id, type, data) + ### methods ### @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX, @@ -255,6 +260,9 @@ def actionResult(self, type, id, data): self.dbus_bridge.actionResult(type, id, data) + def actionResultExt(self, type, id, data): + self.dbus_bridge.actionResultExt(type, id, data) + def register(self, name, callback): debug("registering DBus bridge method [%s]",name) self.dbus_bridge.register(name, callback)