Commit 1d294a29 authored by 's avatar

Merged fix for bug #2023

parent 04d1d82d
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file. # attributions are listed in the accompanying credits file.
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.36 $'[11:-2] __version__='$Revision: 1.37 $'[11:-2]
from string import join, split, find, rfind, lower, upper from string import join, split, find, rfind, lower, upper
from urllib import quote from urllib import quote
...@@ -296,7 +296,7 @@ class BaseRequest: ...@@ -296,7 +296,7 @@ class BaseRequest:
steps=self.steps steps=self.steps
self._steps = _steps = map(quote, steps) self._steps = _steps = map(quote, steps)
path.reverse() path.reverse()
pop = path.pop
request['TraversalRequestNameStack'] = request.path = path request['TraversalRequestNameStack'] = request.path = path
entry_name = '' entry_name = ''
...@@ -307,9 +307,11 @@ class BaseRequest: ...@@ -307,9 +307,11 @@ class BaseRequest:
bpth = getattr(object, '__before_publishing_traverse__', None) bpth = getattr(object, '__before_publishing_traverse__', None)
if bpth is not None: if bpth is not None:
bpth(object, self) bpth(object, self)
path = request.path = request['TraversalRequestNameStack']
# Check for method: # Check for method:
if path: if path:
entry_name = pop() entry_name = path.pop()
elif (method and hasattr(object,method) elif (method and hasattr(object,method)
and entry_name != method and entry_name != method
and getattr(object, method) is not None): and getattr(object, method) is not None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment