summaryrefslogtreecommitdiffstats
path: root/python/dbus.py
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2004-12-23 00:50:37 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2004-12-23 00:50:37 +0000
commitf06f148871c42ca76c7f7471ca7d0acb66fce8c4 (patch)
tree5a23985442da5cf2d2a47b9c0ddc9bcbc7b9fb85 /python/dbus.py
parentdbd4279a80fa72ed2b6cc0f2646a381007fd2180 (diff)
* patch from Rob Taylor <robtaylor@fastmail.fm>
- wrap bus_get_unix_user method in low level bindings - add get_unix_user method to the Bus class - fix extract.py so it can handle unsigned long return types
Diffstat (limited to 'python/dbus.py')
-rw-r--r--python/dbus.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/dbus.py b/python/dbus.py
index 4b538970..c8ac561a 100644
--- a/python/dbus.py
+++ b/python/dbus.py
@@ -99,6 +99,10 @@ class Bus:
def get_connection(self):
"""Get the dbus_bindings.Connection object associated with this Bus"""
return self._connection
+
+ def get_unix_user(self, service_name):
+ """Get the unix user for the given service_name on this Bus"""
+ return dbus_bindings.bus_get_unix_user(self._connection, service_name)
def _get_match_rule(self, signal_name, interface, service, path):
match_rule = "type='signal'"