Mercurial > libervia-backend
diff src/bridge/bridge_constructor/constructors/dbus/dbus_frontend_template.py @ 2086:4633cfcbcccb
bridge (D-Bus): bad design fixes:
- renamed outputed module to dbus_bridge (to avoid uppercase and conflict with dbus module)
- class name is now Bridge for both frontend and core (make discovery/import more easy)
- register renamed to register_method in core, and register_signal in frontend
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 03 Oct 2016 21:15:39 +0200 |
parents | da4097de5a95 |
children | f413bfc24458 |
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/constructors/dbus/dbus_frontend_template.py Sun Oct 02 22:44:33 2016 +0200 +++ b/src/bridge/bridge_constructor/constructors/dbus/dbus_frontend_template.py Mon Oct 03 21:15:39 2016 +0200 @@ -59,7 +59,7 @@ return BridgeException(name, message, condition) -class DBusBridgeFrontend(BridgeFrontend): +class Bridge(BridgeFrontend): def __init__(self): try: self.sessions_bus = dbus.SessionBus() @@ -80,7 +80,7 @@ raise e #props = self.db_core_iface.getProperties() - def register(self, functionName, handler, iface="core"): + def register_signal(self, functionName, handler, iface="core"): if iface == "core": self.db_core_iface.connect_to_signal(functionName, handler) elif iface == "plugin":