[Zope-Checkins] CVS: Zope/lib/python/ZPublisher -
BaseRequest.py:1.51.2.1
Yvo Schubbe
schubbe at web.de
Tue Oct 14 05:07:35 EDT 2003
Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv2524/lib/python/ZPublisher
Modified Files:
Tag: Zope-2_7-branch
BaseRequest.py
Log Message:
Merged yuppie-collector1079-branch:
- Fixed BaseRequest's traversal loop. (Collector #1079)
=== Zope/lib/python/ZPublisher/BaseRequest.py 1.51 => 1.51.2.1 ===
--- Zope/lib/python/ZPublisher/BaseRequest.py:1.51 Fri May 30 11:21:15 2003
+++ Zope/lib/python/ZPublisher/BaseRequest.py Tue Oct 14 05:07:04 2003
@@ -10,7 +10,10 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
-__version__='$Revision$'[11:-2]
+""" Basic ZPublisher request management.
+
+$Id$
+"""
from urllib import quote
import xmlrpc
@@ -269,13 +272,13 @@
request['TraversalRequestNameStack'] = path
continue
else:
- method = default_path[0]
- entry_name = method
+ entry_name = default_path[0]
elif (method and hasattr(object,method)
and entry_name != method
and getattr(object, method) is not None):
request._hacked_path=1
entry_name = method
+ method = 'index_html'
else:
if (hasattr(object, '__call__') and
hasattr(object.__call__,'__roles__')):
@@ -284,7 +287,6 @@
i=URL.rfind('/')
if i > 0: response.setBase(URL[:i])
break
- if not entry_name: continue
step = quote(entry_name)
_steps.append(step)
request['URL'] = URL = '%s/%s' % (request['URL'], step)
More information about the Zope-Checkins
mailing list