Commit 408741a2 authored by Casey Duncan's avatar Casey Duncan

Fix for collector #510, When Python scripts and other "Script" objects were...

Fix for collector #510, When Python scripts and other "Script" objects were acquired during URL traversal, the __before_publishing_traverse__ code did not properly stop traversal at the script and populate traverse_subpath with the remaining url path elements.
parent 1b88370a
...@@ -179,7 +179,7 @@ class Bindings: ...@@ -179,7 +179,7 @@ class Bindings:
path = request['TraversalRequestNameStack'] path = request['TraversalRequestNameStack']
names = self.getBindingAssignments() names = self.getBindingAssignments()
if (not names.isNameAssigned('name_subpath') or if (not names.isNameAssigned('name_subpath') or
(path and hasattr(self.aq_explicit, path[-1])) ): (path and hasattr(self.aq_base, path[-1])) ):
return return
subpath = path[:] subpath = path[:]
path[:] = [] path[:] = []
......
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