Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
970f0cea
Commit
970f0cea
authored
Nov 04, 2003
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #799: Eliminate improper uses of SCRIPT_NAME.
parent
5b7bb59c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/Products/ZopeTutorial/TutorialTopic.py
lib/python/Products/ZopeTutorial/TutorialTopic.py
+2
-2
lib/python/TreeDisplay/TreeTag.py
lib/python/TreeDisplay/TreeTag.py
+3
-3
No files found.
doc/CHANGES.txt
View file @
970f0cea
...
@@ -33,6 +33,8 @@ Zope Changes
...
@@ -33,6 +33,8 @@ Zope Changes
(such as storages, databases, or logging handlers) to be used.
(such as storages, databases, or logging handlers) to be used.
Bugs fixed
Bugs fixed
- Collector #799: Eliminate improper uses of SCRIPT_NAME.
- Collector #445: Add internal global declaration for Script bindings.
- Collector #445: Add internal global declaration for Script bindings.
- Collector #616: Make CONTEXTS available to TALES Python expressions.
- Collector #616: Make CONTEXTS available to TALES Python expressions.
...
...
lib/python/Products/ZopeTutorial/TutorialTopic.py
View file @
970f0cea
...
@@ -130,7 +130,7 @@ class GlossaryTopic(TutorialTopic):
...
@@ -130,7 +130,7 @@ class GlossaryTopic(TutorialTopic):
Returns the URL to a API documentation for a given class.
Returns the URL to a API documentation for a given class.
"""
"""
names
=
klass
.
split
(
'.'
)
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
])
names
[
0
],
names
[
1
],
names
[
2
])
return
'<a href="%s">API Documentation</a>'
%
url
return
'<a href="%s">API Documentation</a>'
%
url
...
@@ -138,7 +138,7 @@ class GlossaryTopic(TutorialTopic):
...
@@ -138,7 +138,7 @@ class GlossaryTopic(TutorialTopic):
"""
"""
Returns the URL to a DTML Reference page for a given tag.
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
return
'<a href="%s">DTML Reference</a>'
%
url
...
...
lib/python/TreeDisplay/TreeTag.py
View file @
970f0cea
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
"""Rendering object hierarchies as Trees
"""Rendering object hierarchies as Trees
"""
"""
__rcs_id__
=
'$Id: TreeTag.py,v 1.5
3 2002/08/14 22:02:25 mj
Exp $'
__rcs_id__
=
'$Id: TreeTag.py,v 1.5
4 2003/11/04 21:17:22 evan
Exp $'
__version__
=
'$Revision: 1.5
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
4
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
*
from
DocumentTemplate.DT_Util
import
*
from
DocumentTemplate.DT_String
import
String
from
DocumentTemplate.DT_String
import
String
...
@@ -332,7 +332,7 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data,
...
@@ -332,7 +332,7 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data,
s
=
translate
(
s
,
tplus
)
s
=
translate
(
s
,
tplus
)
####################################
####################################
script
=
md
[
'
SCRIPT_NAME
'
]
script
=
md
[
'
BASEPATH1
'
]
# Propagate extra args through tree.
# Propagate extra args through tree.
if
args
.
has_key
(
'urlparam'
):
if
args
.
has_key
(
'urlparam'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment