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

Julien 'Ainulindale' Cassignol ainulindale at gmail.com
Mon Feb 2 18:51:18 UTC 2009


The following commit has been merged in the master branch:
commit 1a5a5db680c7695c4116df0e92b9df4dfe53c943
Author: Julien 'Ainulindale' Cassignol <ainulindale at gmail.com>
Date:   Wed Nov 19 13:58:03 2008 +0100

    Added an oeventsd action to call DBus methods. Syntax is : ExternalDBusAction("system"|"session", service, device,
    interface, method, *arguments).
    Session bus is untested and shouldn't work as is (FIXME).
    Thanks shoragan for the step-by-step thing ;-).

diff --git a/framework/subsystems/oeventsd/fso_actions.py b/framework/subsystems/oeventsd/fso_actions.py
index 64e19e5..0a31065 100644
--- a/framework/subsystems/oeventsd/fso_actions.py
+++ b/framework/subsystems/oeventsd/fso_actions.py
@@ -293,3 +293,24 @@ class SuspendAction(DBusAction):
         interface = 'org.freesmartphone.Usage'
         super(SuspendAction, self).__init__(bus, service, obj, interface, 'Suspend')
 
+#============================================================================#
+class ExternalDBusAction(DBusAction):
+#============================================================================#
+    function_name = "ExternalDBusAction"
+
+    """
+    A dbus action on the freesmartphone audio device
+    """
+    def __init__(self, bus, service, obj, interface, method, *args):
+        dbusBus = None
+        self.bus = bus
+        if bus == "system":
+                dbusBus = dbus.SystemBus()
+        else:
+                dbusBus = dbus.SessionBus()
+        logger.info(str(args))
+        super(ExternalDBusAction, self).__init__(dbusBus, service, obj, interface, method, *args)
+
+    def __repr__( self ):
+        return "ExternalDBusAction(bus = %s, service = %s, obj = %s, itf = %s, method = %s)" % (self.bus, self.service, self.obj, self.interface, self.method)
+

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list