summaryrefslogtreecommitdiffstats
path: root/python/_dbus.py
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2005-05-16 21:27:04 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2005-05-16 21:27:04 +0000
commit63ac302bab3fee5abf0241b160bc51792511de5d (patch)
treed70dcb7cc9176841949145041fed490078751af2 /python/_dbus.py
parentad5bafed044278dac991924dcde2a49cc2850b26 (diff)
* glib/dbus-gmain.c (io_handler_dispatch): fix deadlock
when using recursive g_main_loops * python/_dbus.py (class Bus): add the ProxyObjectClass alias for ProxyObject to make it easier for the Twisted networking framework to integrate dbus. * python/proxies.py (class ProxyObject): add the ProxyMethodClass alias for ProxyMethod to make it easier for the Twisted networking framework to integrate dbus.
Diffstat (limited to 'python/_dbus.py')
-rw-r--r--python/_dbus.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/_dbus.py b/python/_dbus.py
index d9c81235..ca7a156a 100644
--- a/python/_dbus.py
+++ b/python/_dbus.py
@@ -70,6 +70,8 @@ class Bus:
"""bus_type=[Bus.TYPE_SESSION | Bus.TYPE_SYSTEM | Bus.TYPE_STARTER]
"""
+ ProxyObjectClass = ProxyObject
+
START_REPLY_SUCCESS = dbus_bindings.DBUS_START_REPLY_SUCCESS
START_REPLY_ALREADY_RUNNING = dbus_bindings.DBUS_START_REPLY_ALREADY_RUNNING
@@ -106,7 +108,7 @@ class Bus:
def get_object(self, named_service, object_path):
"""Get a proxy object to call over the bus"""
- return ProxyObject(self, named_service, object_path)
+ return self.ProxyObjectClass(self, named_service, object_path)
def add_signal_receiver(self, handler_function, signal_name=None, dbus_interface=None, named_service=None, path=None):
match_rule = self._get_match_rule(signal_name, dbus_interface, named_service, path)