From b4b85685f139f1bbf64a557dee2b7c803e5e550b Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Thu, 5 May 2005 18:27:34 +0000 Subject: * 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). --- python/proxies.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') 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')): -- cgit