Commit 51c76d1f authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Ivan Tyagov

PythonScript: prevent setting parameters to None

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