[Zope-Checkins] CVS: Zope2 - BaseRequest.py:1.36.2.1

Brian Lloyd brian@digiciool.com
Thu, 8 Mar 2001 13:54:16 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/ZPublisher
In directory korak:/home/brian/temp/zope-23-branch/lib/python/ZPublisher

Modified Files:
      Tag: zope-2_3-branch
	BaseRequest.py 
Log Message:
Fixed bug #2023



--- Updated File BaseRequest.py in package Zope2 --
--- BaseRequest.py	2001/01/16 20:01:09	1.36
+++ BaseRequest.py	2001/03/08 18:54:15	1.36.2.1
@@ -296,7 +296,7 @@
         steps=self.steps
         self._steps = _steps = map(quote, steps)
         path.reverse()
-        pop = path.pop
+
         request['TraversalRequestNameStack'] = request.path = path
 
         entry_name = ''
@@ -307,9 +307,11 @@
                 bpth = getattr(object, '__before_publishing_traverse__', None)
                 if bpth is not None:
                     bpth(object, self)
+
+                path = request.path = request['TraversalRequestNameStack']
                 # Check for method:
                 if path:
-                    entry_name = pop()
+                    entry_name = path.pop()
                 elif (method and hasattr(object,method)
                       and entry_name != method
                       and getattr(object, method) is not None):