summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2005-05-05 18:27:34 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2005-05-05 18:27:34 +0000
commitb4b85685f139f1bbf64a557dee2b7c803e5e550b (patch)
treeb3641d02e84798bdfa24ec938a67f54ca4663d88
parent425257ddf930105bea6d648a19e184c74da4177b (diff)
* Fix my name in previous changelog ;)
* python/proxies.py (ProxyObject.__getattr__): add further patch from Anthony Baxter to throw an AttributeError when python __special__ functions are called instead of marshling them over the bus (Bug#1685 comment 3).
-rw-r--r--ChangeLog11
-rw-r--r--python/proxies.py2
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 608275c9..408a4e3f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,13 @@
-2005-05-04 John (J5) Palmieir <johnp@redhat.com>
+2005-05-05 John (J5) Palmieri <johnp@redhat.com>
+
+ * Fix my name in previous changelog ;)
+
+ * python/proxies.py (ProxyObject.__getattr__): add further patch
+ from Anthony Baxter to throw an AttributeError when python
+ __special__ functions are called instead of marshling them over
+ the bus (Bug#1685 comment 3).
+
+2005-05-04 John (J5) Palmieri <johnp@redhat.com>
* python/Makefile.am: changed to use pyexecdir for the binding
shared libraries (Bug#2494)
diff --git a/python/proxies.py b/python/proxies.py
index d8804c02..cbd49200 100644
--- a/python/proxies.py
+++ b/python/proxies.py
@@ -23,6 +23,8 @@ class ProxyObject:
def __getattr__(self, member, **keywords):
if member == '__call__':
return object.__call__
+ elif member.startswith('__') and member.endswith('__'):
+ raise AttributeError(member)
else:
iface = None
if (keywords.has_key('dbus_interface')):