diff frontends/src/jp/base.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 227a4e617549
children e0066920a661
line wrap: on
line diff
--- a/frontends/src/jp/base.py	Sun Oct 02 22:44:33 2016 +0200
+++ b/frontends/src/jp/base.py	Mon Oct 03 21:15:39 2016 +0200
@@ -33,7 +33,7 @@
 from glob import iglob
 from importlib import import_module
 from sat_frontends.tools.jid import JID
-from sat_frontends.bridge.DBus import DBusBridgeFrontend
+from sat_frontends.bridge.dbus_bridge import Bridge
 from sat.core import exceptions
 import sat_frontends.jp
 from sat_frontends.jp.constants import Const as C
@@ -96,7 +96,7 @@
             by default display a message
         """
         try:
-            self.bridge = DBusBridgeFrontend()
+            self.bridge = Bridge()
         except exceptions.BridgeExceptionNoService:
             print(_(u"Can't connect to SàT backend, are you sure it's launched ?"))
             sys.exit(1)