[Zope-Checkins] CVS: Products/ZopeTutorial -
TutorialTopic.py:1.14.38.1
Evan Simpson
cvs-admin at zope.org
Tue Nov 4 16:18:33 EST 2003
Update of /cvs-repository/Products/ZopeTutorial
In directory cvs.zope.org:/tmp/cvs-serv17615/lib/python/Products/ZopeTutorial
Modified Files:
Tag: Zope-2_7-branch
TutorialTopic.py
Log Message:
Collector #799: Eliminate improper uses of SCRIPT_NAME.
=== Products/ZopeTutorial/TutorialTopic.py 1.14 => 1.14.38.1 ===
--- Products/ZopeTutorial/TutorialTopic.py:1.14 Wed Oct 16 17:14:42 2002
+++ Products/ZopeTutorial/TutorialTopic.py Tue Nov 4 16:18:02 2003
@@ -130,7 +130,7 @@
Returns the URL to a API documentation for a given class.
"""
names=klass.split('.')
- url="%s/Control_Panel/Products/%s/Help/%s.py#%s" % (REQUEST['SCRIPT_NAME'],
+ url="%s/Control_Panel/Products/%s/Help/%s.py#%s" % (REQUEST['BASEPATH1'],
names[0], names[1], names[2])
return '<a href="%s">API Documentation</a>' % url
@@ -138,7 +138,7 @@
"""
Returns the URL to a DTML Reference page for a given tag.
"""
- url="%s/Control_Panel/Products/OFSP/Help/dtml-%s.stx" % (REQUEST['SCRIPT_NAME'], tag)
+ url="%s/Control_Panel/Products/OFSP/Help/dtml-%s.stx" % (REQUEST['BASEPATH1'], tag)
return '<a href="%s">DTML Reference</a>' % url
More information about the Zope-Checkins
mailing list