[Checkins] [zopefoundation/Products.PythonScripts] f89eed: Show proper error message for not allowed identifi...

Jürgen Gmach noreply at github.com
Sun Jul 7 13:46:40 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/Products.PythonScripts
  Commit: f89eed42a00a8ab358050474c9a2315a40c57ee7
      https://github.com/zopefoundation/Products.PythonScripts/commit/f89eed42a00a8ab358050474c9a2315a40c57ee7
  Author: Jürgen Gmach <juergen.gmach at googlemail.com>
  Date:   2019-07-07 (Sun, 07 Jul 2019)

  Changed paths:
    M CHANGES.rst
    M src/Products/PythonScripts/PythonScript.py
    M src/Products/PythonScripts/tests/testPythonScript.py

  Log Message:
  -----------
  Show proper error message for not allowed identifiers. (#34)

Due to interaction between Script(Python) 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
modified:   CHANGES.rst




More information about the checkins mailing list