[Zope-Checkins] CVS: Zope2 - PythonScript.py:1.31

andreas@serenade.digicool.com andreas@serenade.digicool.com
Mon, 18 Jun 2001 13:33:06 -0400


Update of /cvs-repository/Zope2/lib/python/Products/PythonScripts
In directory serenade:/tmp/cvs-serv26220/lib/python/Products/PythonScripts

Modified Files:
	PythonScript.py 
Log Message:
Collector #2305: A comma inside an optional parameter of the
parameter string broke the ZScriptHTML_tryParams function.



--- Updated File PythonScript.py in package Zope2 --
--- PythonScript.py	2001/06/11 14:42:48	1.30
+++ PythonScript.py	2001/06/18 17:33:06	1.31
@@ -241,10 +241,12 @@
 
     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