[Zope-dev] Zope 2.4.1 bugfix in RestrictedPython/__init__.py
Shane Hathaway
shane@zope.com
Fri, 14 Sep 2001 10:10:46 -0400
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