summaryrefslogtreecommitdiffstats
path: root/python/proxies.py
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2005-05-05 18:01:45 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2005-05-05 18:01:45 +0000
commit425257ddf930105bea6d648a19e184c74da4177b (patch)
tree2107ff6bc49c56cd2897a023b22a9c3b9ec10312 /python/proxies.py
parent18ada3395f7498e9028acdb061624c3743f51cf6 (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/proxies.py')
-rw-r--r--python/proxies.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/proxies.py b/python/proxies.py
index 0e00d64a..d8804c02 100644
--- a/python/proxies.py
+++ b/python/proxies.py
@@ -32,6 +32,11 @@ class ProxyObject:
self._named_service,
self._object_path, iface, member)
+ def __repr__(self):
+ return '<ProxyObject wrapping %s %s %s at %x>'%(
+ self._bus, self._named_service, self._object_path , id(self))
+ __str__ = __repr__
+
class ProxyMethod:
"""A proxy Method.