Python signals

David Zeuthen david@fubar.dk
Tue, 11 Nov 2003 21:12:09 +0100


Hi,

Below very small patch to let D-BUS signal handlers in python chew on
the message and extract the parameters, since we allow signals to carry
parameters, yes?

Ok to commit?

Thanks,
David

Index: dbus.py
===================================================================
RCS file: /cvs/dbus/dbus/python/dbus.py,v
retrieving revision 1.2
diff -u -r1.2 dbus.py
--- dbus.py     30 Sep 2003 02:40:49 -0000      1.2
+++ dbus.py     11 Nov 2003 20:07:43 -0000
@@ -103,7 +103,7 @@
  
         if (self._match_rule_to_receivers.has_key(match_rule)):
             receivers = self._match_rule_to_receivers[match_rule]
-            args = [interface, member, service, path]
+            args = [interface, member, service, path, message]
             for receiver in receivers:
                 receiver(*args)