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
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )