1
0
Fork 0

application: enable dbus exporter

This commit is contained in:
Jan Vcelak 2012-05-07 17:16:29 +02:00
parent 2b7e754c08
commit d7ae535551

View file

@ -34,14 +34,14 @@ class Application(object):
self._controller = controller.Controller(self._daemon, config_file)
self._dbus_exporter = None
# if enable_dbus:
# self._init_dbus()
if enable_dbus:
self._init_dbus()
self._init_signals()
def _init_dbus(self):
self._dbus_exporter = exports.dbus.DBusExporter(DBUS_BUS, DBUS_INTERFACE, DBUS_OBJECT)
exports.register_exporter(_dbus_exporter)
exports.register_exporter(self._dbus_exporter)
exports.register_object(self._controller)
def _init_signals(self):