diff options
Diffstat (limited to 'python/service.py')
-rw-r--r-- | python/service.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/service.py b/python/service.py index 3eec65f6..409fc78a 100644 --- a/python/service.py +++ b/python/service.py @@ -294,6 +294,10 @@ class Object(Interface): keywords[return_callback] = lambda *retval: _method_reply_return(connection, message, method_name, signature, *retval) keywords[error_callback] = lambda exception: _method_reply_error(connection, message, exception) + # include the sender if desired + if parent_method._dbus_sender_keyword: + keywords[parent_method._dbus_sender_keyword] = message.get_sender() + # call method retval = candidate_method(self, *args, **keywords) |