[Zope-Checkins]
SVN: Zope/branches/philikon-aq/lib/python/AccessControl/cAccessControl.c
aq_parent and aq_inner work on non-wrappers as well now,
no need to break out
Philipp von Weitershausen
philikon at philikon.de
Sat Jul 28 08:14:25 EDT 2007
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;
More information about the Zope-Checkins
mailing list