[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container - ContainerTraversable.py:1.1.2.3

Steve Alexander steve@cat-box.net
Thu, 21 Mar 2002 09:22:07 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container
In directory cvs.zope.org:/tmp/cvs-serv29726/lib/python/Zope/App/OFS/Container

Modified Files:
      Tag: Zope-3x-branch
	ContainerTraversable.py 
Log Message:
improved calculation of error message when a namespace doesn't match.
Actually, there should be a test for the NotFoundError when a namespace
doesn't match.


=== Zope3/lib/python/Zope/App/OFS/Container/ContainerTraversable.py 1.1.2.2 => 1.1.2.3 ===
             
             if namespace not in ('method', 'content'):
-                raise NotFoundError, 'unrecognised namespace "%s" in "%s;%s"' \
-                     % (namespace, name, namespace)            
+                raise NotFoundError, 'unrecognised namespace "%s" in "%s"' \
+                     % (namespace, original_name)
         else:
             # traversal with no namespace given
             # containers try methods, then if no method if found,