Log message for revision 78425:
  aq_parent and aq_inner work on non-wrappers as well now, no need to break out
  of the loop here.
  

Changed:
  U   Zope/branches/philikon-aq/lib/python/AccessControl/cAccessControl.c

-=-
Modified: Zope/branches/philikon-aq/lib/python/AccessControl/cAccessControl.c
===================================================================
--- Zope/branches/philikon-aq/lib/python/AccessControl/cAccessControl.c 
2007-07-28 12:13:38 UTC (rev 78424)
+++ Zope/branches/philikon-aq/lib/python/AccessControl/cAccessControl.c 
2007-07-28 12:14:25 UTC (rev 78425)
@@ -1878,13 +1878,11 @@
 
       
       /*
-        object = getattr(object, 'aq_inner', None)
+        object = aq_inner(object)
         if object is None:
             break
-        object = object.aq_parent
+        object = object.__parent__
        */
-      if (! aq_isWrapper(object)) 
-        break;
       {
         PyObject *tobj = aq_inner(object);
         if (tobj == NULL) 
@@ -1895,8 +1893,6 @@
         if (object == Py_None) 
           break;
 
-        if (! aq_isWrapper(object)) 
-          break;
         tobj = aq_parent(object);
         if (tobj == NULL) 
           goto end;

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

Reply via email to