diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2004-12-27 16:01:13 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2004-12-27 16:01:13 +0000 |
commit | a11bbc91a794052eeb0a88aa207b01c871677cf4 (patch) | |
tree | 93c26e14063697be0c6426bb3fd79cb5703c9312 /python/dbus.py | |
parent | b8a309ac940374ead27618508ab8f81665ff7d9d (diff) |
2004-12-26 John (J5) Palmieri <johnp@redhat.com>
* python/dbus_bindings.pyx.in (bus_activate_service): Bind
dbus_bus_activate_service
* python/dbus.py (Bus.activate_service): activate a service on the
bus.
Diffstat (limited to 'python/dbus.py')
-rw-r--r-- | python/dbus.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/dbus.py b/python/dbus.py index c8ac561a..6d38667d 100644 --- a/python/dbus.py +++ b/python/dbus.py @@ -62,6 +62,10 @@ class Bus: """bus_type=[Bus.TYPE_SESSION | Bus.TYPE_SYSTEM | Bus.TYPE_ACTIVATION] """ + + ACTIVATION_REPLY_ACTIVE = dbus_bindings.ACTIVATION_REPLY_ACTIVE + ACTIVATION_REPLY_ALREADY_ACTIVE = dbus_bindings.ACTIVATION_REPLY_ALREADY_ACTIVE + def __init__(self, bus_type=TYPE_SESSION, glib_mainloop=True): self._connection = dbus_bindings.bus_get(bus_type) @@ -139,6 +143,9 @@ class Bus: for receiver in receivers: receiver(*args) + def activate_service(self, service): + return dbus_bindings.bus_activate_service(self._connection, service) + class SystemBus(Bus): """The system-wide message bus """ |