From 63ac302bab3fee5abf0241b160bc51792511de5d Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Mon, 16 May 2005 21:27:04 +0000 Subject: * 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. --- python/_dbus.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python/_dbus.py') 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) -- cgit