Commit 8830882b authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Tatuya Kamada

PythonScript: prevent setting parameters to None

parent 1012111f
......@@ -108,8 +108,12 @@ class PythonScript(XMLObject, ZopePythonScript):
def _setParameterSignature(self, value):
"""
override to call ZopePythonScript methods to force compiling code
and prevent setting to None
"""
self._baseSetParameterSignature(value)
if value is None:
self._params = ''
else:
self._baseSetParameterSignature(value)
self._compile()
def _setProxyRoleList(self, value):
......
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