[Zope-dev] Zope 2.4.1 bugfix in RestrictedPython/__init__.py

2001-09-14 Thread Romain Slootmaekers

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.





___
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 )



Re: [Zope-dev] Zope 2.4.1 bugfix in RestrictedPython/__init__.py

2001-09-14 Thread Shane Hathaway

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 )