Log message for revision 77023:
  Turned method into a property, as per philiKON's suggestion.
  

Changed:
  U   
Zope/branches/philikon-aq-and-__parent__/lib/python/Shared/DC/Scripts/Bindings.py

-=-
Modified: 
Zope/branches/philikon-aq-and-__parent__/lib/python/Shared/DC/Scripts/Bindings.py
===================================================================
--- 
Zope/branches/philikon-aq-and-__parent__/lib/python/Shared/DC/Scripts/Bindings.py
   2007-06-24 19:37:05 UTC (rev 77022)
+++ 
Zope/branches/philikon-aq-and-__parent__/lib/python/Shared/DC/Scripts/Bindings.py
   2007-06-25 00:01:39 UTC (rev 77023)
@@ -172,16 +172,16 @@
     __allow_access_to_unprotected_subobjects__ = 1
     __roles__ = _what_not_even_god_should_do
 
+    # Acquisition will nowadays try to do an getattr on all objects which
+    # aren't Acquisition wrappers, asking for a __parent__ pointer. We need
+    # to provide a fake one, or our normal __getattr__ method will be used
+    # and fail as __parent__ starts with a __.
+
+    __parent__ = None
+
     def __repr__(self):
         return '<UnauthorizedBinding: %s>' % self._name
 
-    def __parent__(self):
-        # Acquisition will nowadays try to do an getattr on all objects which
-        # aren't Acquisition wrappers asking for a __parent__ pointer. We need
-        # to provide a fake one, or our normal __getattr__ method will be used
-        # and fail as __parent__ starts with a __.
-        return None
-
     def __getattr__(self, name, default=None):
         # Make *extra* sure that the wrapper isn't used to access
         # __call__, etc.

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to