From 982e34a1ec594ae8ad8c27a651b6eba68dcae40e Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Tue, 24 May 2005 16:30:51 +0000 Subject: * python/decorators.py: add explicitly_pass_message decorator for passing in the dbus message as keyword for edge case signal handling * python/matchrules.py (SignalMatchRule.__repr__): fix output to conform with what dbus expects for match rules (SignalMatchRule.execute): add the dbus message as a keyword if the signal handler has requested it * python/examples/example/signal-recipient.py: added some more examples on how to hook up to signals * python/proxies.py: minor formatting changes --- python/decorators.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'python/decorators.py') diff --git a/python/decorators.py b/python/decorators.py index 7847b3a2..2deec6d0 100644 --- a/python/decorators.py +++ b/python/decorators.py @@ -1,7 +1,7 @@ import _util import inspect import dbus_bindings - +import new def method(dbus_interface): _util._validate_interface_or_name(dbus_interface) @@ -37,3 +37,6 @@ def signal(dbus_interface): return decorator +def explicitly_pass_message(func): + func._dbus_pass_message = True + return func -- cgit