diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2004-12-23 00:50:37 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2004-12-23 00:50:37 +0000 |
commit | f06f148871c42ca76c7f7471ca7d0acb66fce8c4 (patch) | |
tree | 5a23985442da5cf2d2a47b9c0ddc9bcbc7b9fb85 /python/dbus.py | |
parent | dbd4279a80fa72ed2b6cc0f2646a381007fd2180 (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.py | 4 |
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'" |