]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
* Fix my name in previous changelog ;)
authorJohn (J5) Palmieri <johnp@redhat.com>
Thu, 5 May 2005 18:27:34 +0000 (18:27 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Thu, 5 May 2005 18:27:34 +0000 (18:27 +0000)
* 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).

ChangeLog
python/proxies.py

index 608275c99eda45c78907959f554ce58af200a76f..408a4e3f3200d579b8f03186eff3337d9b534f23 100644 (file)
--- 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)
index d8804c02783965a23ebb41a616a7871ee7ef9267..cbd492003760c16dd4b322c13ba8dee90e794264 100644 (file)
@@ -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')):