[Checkins] [zopefoundation/Products.PythonScripts] 9d1231: Show proper error message for not allowed identifi...
Jürgen Gmach
noreply at github.com
Fri Jul 5 09:40:31 CEST 2019
Branch: refs/heads/issue_33
Home: https://github.com/zopefoundation/Products.PythonScripts
Commit: 9d1231d4d68b9253a890d44e18c3101514a9c451
https://github.com/zopefoundation/Products.PythonScripts/commit/9d1231d4d68b9253a890d44e18c3101514a9c451
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.
This closes #33
modified: src/Products/PythonScripts/PythonScript.py
modified: src/Products/PythonScripts/tests/testPythonScript.py
More information about the checkins
mailing list