[Zope] New restricted python - How to use in my Product?

Evan Simpson evan@4-am.com
Mon, 30 Jul 2001 09:44:45 -0400


Christian Theune wrote:

> With Zope 2.4.0 there is the new RestrictedPython module
> with this "expression" thing, but I can't find any
> useful documentation on how to use that.


Check out the PythonExpr class in ZRPythonExpr.py of PageTemplates.  It 
shows how to compile and evaluate an expression with Zope restrictions.

Cheers,

Evan @ 4-am & Zope