14 Sep
2001
14 Sep
'01
2:10 p.m.
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