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

Andreas Jung andreas@zope.com
Thu, 29 Nov 2001 11:06:40 -0500


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

Modified Files:
	Common.py 
Log Message:
manage_FTPlist on nested ZClasses could not be handled properly


=== Zope/lib/python/App/Common.py 1.9 => 1.10 ===
     if not hasattr(ob, 'aq_parent'):
         return 0
-    if hasattr(aq_base(ob.aq_parent), absattr(ob.id)):
+
+    parent = aq_base(ob.aq_parent)
+    absId  = absattr(ob.id)
+    
+    if hasattr(parent,'_objects'):
+        if absId+' ' in parent.objectIds():
+            return 0
+
+    if hasattr(parent, absId):
         return 0
     if hasattr(aq_base(ob), 'isTopLevelPrincipiaApplicationObject') and \
             ob.isTopLevelPrincipiaApplicationObject: