[Zope-Checkins] CVS: Zope/lib/python/Shared/DC/Scripts - Bindings.py:1.9
Casey Duncan
casey@zope.com
Mon, 19 Aug 2002 09:40:42 -0400
Update of /cvs-repository/Zope/lib/python/Shared/DC/Scripts
In directory cvs.zope.org:/tmp/cvs-serv18571
Modified Files:
Bindings.py
Log Message:
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.
=== Zope/lib/python/Shared/DC/Scripts/Bindings.py 1.8 => 1.9 ===
--- Zope/lib/python/Shared/DC/Scripts/Bindings.py:1.8 Wed Aug 14 17:50:59 2002
+++ Zope/lib/python/Shared/DC/Scripts/Bindings.py Mon Aug 19 09:40:42 2002
@@ -179,7 +179,7 @@
path = request['TraversalRequestNameStack']
names = self.getBindingAssignments()
if (not names.isNameAssigned('name_subpath') or
- (path and hasattr(self.aq_explicit, path[-1])) ):
+ (path and hasattr(self.aq_base, path[-1])) ):
return
subpath = path[:]
path[:] = []