Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Eugene Shen
erp5
Commits
8830882b
Commit
8830882b
authored
9 years ago
by
Klaus Wölfel
Committed by
Tatuya Kamada
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
PythonScript: prevent setting parameters to None
parent
1012111f
master
erp5_post
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
product/ERP5/Document/PythonScript.py
+5
-1
product/ERP5/Document/PythonScript.py
with
5 additions
and
1 deletion
+5
-1
product/ERP5/Document/PythonScript.py
+
5
-
1
View file @
8830882b
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help