[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone4-368-g700ab82

Michael 'Mickey' Lauer mickey at vanille-media.de
Mon Feb 2 18:52:05 UTC 2009


The following commit has been merged in the master branch:
commit 4bd27f784af30e0484f630f420085117d93e81ae
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Wed Jan 28 00:23:43 2009 +0100

    track busmap in config for simple access to the proper bus connection from each and every module

diff --git a/framework/config.py b/framework/config.py
index 05a12f6..cc5b87e 100644
--- a/framework/config.py
+++ b/framework/config.py
@@ -41,6 +41,11 @@ loggingmap = { \
     "CRITICAL": logging.CRITICAL,
 }
 #
+# busmap for subsystems
+#
+busmap = {}
+
+#
 # init configuration
 #
 config = None
diff --git a/framework/subsystem.py b/framework/subsystem.py
index 08695c2..74cfe14 100644
--- a/framework/subsystem.py
+++ b/framework/subsystem.py
@@ -10,9 +10,9 @@ Module: subsystem
 """
 
 MODULE_NAME = "frameworkd.subsystem"
-__version__ = "1.1.0"
+__version__ = "1.1.1"
 
-from .config import config, DBUS_BUS_NAME_PREFIX
+from .config import config, busmap, DBUS_BUS_NAME_PREFIX
 
 from patterns.processguard import ProcessGuard
 
@@ -36,6 +36,7 @@ class Subsystem( object ):
         self.launchTime = time.time()
         self.name = name
         self.bus = dbus.bus.BusConnection( dbus.bus.BUS_SYSTEM )
+        busmap[name] = self.bus
         self.path = path
         self.controller = controller
         self._objects = {}

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list