diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2005-05-05 18:01:45 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2005-05-05 18:01:45 +0000 |
commit | 425257ddf930105bea6d648a19e184c74da4177b (patch) | |
tree | 2107ff6bc49c56cd2897a023b22a9c3b9ec10312 /python/_dbus.py | |
parent | 18ada3395f7498e9028acdb061624c3743f51cf6 (diff) |
* 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)
Diffstat (limited to 'python/_dbus.py')
-rw-r--r-- | python/_dbus.py | 7 |
1 files changed, 5 insertions, 2 deletions
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 '<Interface %r implementing %r at %x>'%( + self._obj, self._dbus_interface, id(self)) + __str__ = __repr__ |