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
bd1b818d
Commit
bd1b818d
authored
Jun 18, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #2305: A comma inside an optional parameter of the
parameter string broke the ZScriptHTML_tryParams function.
parent
3fb86f36
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
doc/CHANGES.txt
doc/CHANGES.txt
+4
-0
lib/python/Products/PythonScripts/PythonScript.py
lib/python/Products/PythonScripts/PythonScript.py
+4
-2
No files found.
doc/CHANGES.txt
View file @
bd1b818d
...
...
@@ -77,6 +77,10 @@ Zope Changes
- Collector #2306: Fixed broken glossary of Zope Tutorial
- Collector #2305: A comma inside an optional parameter of the
parameter string broke the ZScriptHTML_tryParams function.
Zope 2.4 alpha 1
...
...
lib/python/Products/PythonScripts/PythonScript.py
View file @
bd1b818d
...
...
@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted
Python code.
"""
__version__
=
'$Revision: 1.3
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
import
sys
,
os
,
traceback
,
re
,
marshal
from
Globals
import
DTMLFile
,
MessageDialog
,
package_home
...
...
@@ -241,10 +241,12 @@ class PythonScript(Script, Historical, Cacheable):
def
ZScriptHTML_tryParams
(
self
):
"""Parameters to test the script with."""
print
self
.
_params
param_names
=
[]
for
name
in
self
.
_params
.
split
(
','
):
name
=
name
.
strip
()
if
name
and
name
[
0
]
!=
'*'
:
if
name
and
name
[
0
]
!=
'*'
and
re
.
match
(
'
\
w
'
,name)
:
param_names.append(name.split('
=
', 1)[0])
return param_names
...
...
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