[Zope-Checkins] CVS: Zope/lib/python/App - Common.py:1.16.20.1

Andreas Jung andreas@andreas-jung.com
Sat, 16 Nov 2002 11:41:12 -0500


Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv25283/App

Modified Files:
      Tag: ajung-restructuredtext-integration-branch
	Common.py 
Log Message:
merge from trunk

=== Zope/lib/python/App/Common.py 1.16 => 1.16.20.1 ===
--- Zope/lib/python/App/Common.py:1.16	Tue Sep  3 02:09:04 2002
+++ Zope/lib/python/App/Common.py	Sat Nov 16 11:40:42 2002
@@ -90,7 +90,9 @@
         # Use __getitem__ as opposed to has_key to avoid TTW namespace
         # issues, and to support the most minimal mapping objects
         try:
-            if aq_base(parent[absId]) is aq_base(ob):
+            # We assume that getitem will not acquire which
+            # is the standard behavior for Zope objects
+            if aq_base(ob.aq_parent[absId]) is aq_base(ob):
                 # This object is an item of the aq_parent, its not acquired
                 return 0
         except KeyError: