[Zope-Checkins]
SVN: Zope/branches/philikon-aq/lib/python/Acquisition/tests.py
cosmetics (make it easier to read)
Philipp von Weitershausen
philikon at philikon.de
Fri Jul 27 20:50:00 EDT 2007
Log message for revision 78406:
cosmetics (make it easier to read)
Changed:
U Zope/branches/philikon-aq/lib/python/Acquisition/tests.py
-=-
Modified: Zope/branches/philikon-aq/lib/python/Acquisition/tests.py
===================================================================
--- Zope/branches/philikon-aq/lib/python/Acquisition/tests.py 2007-07-28 00:25:57 UTC (rev 78405)
+++ Zope/branches/philikon-aq/lib/python/Acquisition/tests.py 2007-07-28 00:50:00 UTC (rev 78406)
@@ -1258,14 +1258,17 @@
>>> def checkContext(self, o):
... # Python equivalent to aq_inContextOf
... from Acquisition import aq_base, aq_parent, aq_inner
- ... subob = self
+ ... next = self
... o = aq_base(o)
... while 1:
- ... if aq_base(subob) is o: return 1
- ... self = aq_inner(subob)
- ... if self is None: break
- ... subob = aq_parent(self)
- ... if subob is None: break
+ ... if aq_base(next) is o:
+ ... return 1
+ ... self = aq_inner(next)
+ ... if self is None:
+ ... break
+ ... next = aq_parent(self)
+ ... if next is None:
+ ... break
>>> checkContext(b.c, b)
More information about the Zope-Checkins
mailing list