From 425257ddf930105bea6d648a19e184c74da4177b Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Thu, 5 May 2005 18:01:45 +0000 Subject: * python/Makefile.am: changed to use pyexecdir for the binding shared libraries (Bug#2494) * python/exceptions.py: bring exceptions over from the bindings so they can be used in applications (Bug#2036) Make all exceptions derive from DBusException * python/_dbus.py, python/proxies.py: implement __repr__ in a couple of classes so that print obj doesn't throw an exception (Bug #1685) --- python/_dbus.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'python/_dbus.py') diff --git a/python/_dbus.py b/python/_dbus.py index 9dc3bd0a..d9c81235 100644 --- a/python/_dbus.py +++ b/python/_dbus.py @@ -187,7 +187,6 @@ class StarterBus(Bus): def __init__(self): Bus.__init__(self, Bus.TYPE_STARTER) - class Interface: """An inteface into a remote object @@ -216,4 +215,8 @@ class Interface: return object.__call__ else: return self._obj.__getattr__(member, dbus_interface=_dbus_interface) - + + def __repr__(self): + return ''%( + self._obj, self._dbus_interface, id(self)) + __str__ = __repr__ -- cgit