[CMF-checkins] CVS: Products/CMFCore/tests/base - dummy.py:1.19

Grégoire Weber zope.org at incept.ch
Mon Aug 2 19:10:32 EDT 2004


Update of /cvs-repository/Products/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv20797/tests/base

Modified Files:
	dummy.py 
Log Message:
- improved DummyFolder's getPhysicalPath to avoid AttributeErrors on aq_inner


=== Products/CMFCore/tests/base/dummy.py 1.18 => 1.19 ===
--- Products/CMFCore/tests/base/dummy.py:1.18	Tue Jul 13 14:21:24 2004
+++ Products/CMFCore/tests/base/dummy.py	Mon Aug  2 19:10:32 2004
@@ -154,7 +154,11 @@
         self._delOb(id)
 
     def getPhysicalPath(self):
-        return self.aq_inner.aq_parent.getPhysicalPath() + ( self._id, )
+        p = aq_parent(aq_inner(self))
+        path = (self._id, )
+        if p is not None:
+            path = p.getPhysicalPath() + path
+        return path
 
     def getId(self):
         return self._id



More information about the CMF-checkins mailing list