Zope 2.4.1 bugfix in RestrictedPython/__init__.py
Yo dudes, VSEval in Documenttemplate tries to set Eval No problem but RestictedPython has no Eval attribute by default so you need to import it add this line to RestrictedPython/__init__.py import Eval can someone add this to the source tree ? Tia & have fun, Sloot.
Romain Slootmaekers wrote:
Yo dudes, VSEval in Documenttemplate tries to set Eval No problem but RestictedPython has no Eval attribute by default so you need to import it
add this line to RestrictedPython/__init__.py
import Eval
Actually, VSEval currently does *not* apply restrictions. I'd like you to try changing VSEval to the following and tell me whether you have any problems. Shane # alias module for backwards compatibility from DT_Util import Eval def careful_mul(env, *factors): r = 1 for factor in factors: r=r*factor return r
participants (2)
-
Romain Slootmaekers -
Shane Hathaway