[Checkins] [zopefoundation/Products.PythonScripts] 47cb56: Show proper error message for not allowed identifi...
Jürgen Gmach
noreply at github.com
Fri Jul 5 09:38:58 CEST 2019
Branch: refs/heads/issue_33
Home: https://github.com/zopefoundation/Products.PythonScripts
Commit: 47cb565e05a0f0e9a1eec04b508ace68a159248c
https://github.com/zopefoundation/Products.PythonScripts/commit/47cb565e05a0f0e9a1eec04b508ace68a159248c
Author: Jürgen Gmach <juergen.gmach at googlemail.com>
Date: 2019-07-05 (Fri, 05 Jul 2019)
Changed paths:
M src/Products/PythonScripts/PythonScript.py
M src/Products/PythonScripts/tests/testPythonScript.py
Log Message:
-----------
Show proper error message for not allowed identifiers.
Due to interaction between Python(Scripts) and RestrictedPython,
following identifiers are not allowed:
- context
- container
- script
- traverse_subpath
Instead of throwing an "IndexError", now a proper error messsage
is shown.
modified: src/Products/PythonScripts/PythonScript.py
modified: src/Products/PythonScripts/tests/testPythonScript.py
More information about the checkins
mailing list