[Zope3-checkins] CVS: Zope3/src/zope/app/traversing - __init__.py:1.23.24.2 namespace.py:1.19.2.3

Jim Fulton jim at zope.com
Tue Sep 9 15:08:51 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/traversing
In directory cvs.zope.org:/tmp/cvs-serv4989/src/zope/app/traversing

Modified Files:
      Tag: parentgeddon-branch
	__init__.py namespace.py 
Log Message:
got more tests to pass on branch

=== Zope3/src/zope/app/traversing/__init__.py 1.23.24.1 => 1.23.24.2 ===
--- Zope3/src/zope/app/traversing/__init__.py:1.23.24.1	Mon Sep  8 14:21:50 2003
+++ Zope3/src/zope/app/traversing/__init__.py	Tue Sep  9 14:08:20 2003
@@ -134,7 +134,7 @@
     if IContainmentRoot.isImplementedBy(obj):
         return None
     
-    parent = obj.__parent__
+    parent = getattr(obj, '__parent__', None)
     if parent is not None:
         return parent
 


=== Zope3/src/zope/app/traversing/namespace.py 1.19.2.2 => 1.19.2.3 ===
--- Zope3/src/zope/app/traversing/namespace.py:1.19.2.2	Tue Sep  9 11:47:09 2003
+++ Zope3/src/zope/app/traversing/namespace.py	Tue Sep  9 14:08:20 2003
@@ -130,7 +130,7 @@
             else:
                 return next
 
-        ob = ob.__parent__
+        ob = getattr(ob, '__parent__', None)
         if ob is None:
             raise NotFoundError(origOb, pname)
 




More information about the Zope3-Checkins mailing list