Commit 1b9e1acb authored by Evan Simpson's avatar Evan Simpson

Strip default value from parameter name in test page.

parent 162a9fee
...@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted ...@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted
Python code. Python code.
""" """
__version__='$Revision: 1.22 $'[11:-2] __version__='$Revision: 1.23 $'[11:-2]
import sys, os, traceback, re import sys, os, traceback, re
from Globals import DTMLFile, MessageDialog from Globals import DTMLFile, MessageDialog
...@@ -233,7 +233,7 @@ class PythonScript(Script, Historical, Cacheable): ...@@ -233,7 +233,7 @@ class PythonScript(Script, Historical, Cacheable):
for name in split(self._params, ','): for name in split(self._params, ','):
name = strip(name) name = strip(name)
if name and name[0] != '*': if name and name[0] != '*':
param_names.append(name) param_names.append(split(name, '=', 1)[0])
return param_names return param_names
def manage_historyCompare(self, rev1, rev2, REQUEST, def manage_historyCompare(self, rev1, rev2, REQUEST,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment