[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication - PublicationTraverse.py:1.4

Jim Fulton jim@zope.com
Sat, 13 Jul 2002 10:19:07 -0400


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

Modified Files:
	PublicationTraverse.py 
Log Message:
Fixed bug in context management when uri segments that produce only
side effects (e.g. ++skin++ZopeTop) are used.

Fixed up absolute url bread crumbs to not show side-effect steps in
bread crumbs, while retaining them in the breadcrumb urls.

Refactored side-effect handling slightly (changed context data names)
in absolute url and physical path code.

Added tests for side effect handling for absolute url, physical path,
and namespace handling code.


=== Zope3/lib/python/Zope/App/ZopePublication/PublicationTraverse.py 1.3 => 1.4 ===
 
             if ns:
                 ob2 = namespaceLookup(name, ns, nm, unknown_parms, ob, request)
-                if ob2 == ob:
-                    return ContextWrapper(ob2, ob, name='.', uri_segment=name)
-                return ContextWrapper(ob2, ob, name=name)
+                return ob2
 
             if unknown_parms:
                 nm = "%s;%s" % (