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

Christian Theune ct@gocept.com
Mon, 30 Jul 2001 12:11:45 +0200


--NKoe5XOeduwbEQHU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi.

In one of my products i use following code:

import rexec

    r_env =3D rexec.RExec()
    selected=3Dr_env.r_eval(self.default)

that was zope 2.3 and python 2.0.
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.

regards

Christian

--=20
Christian Theune - ct@gocept.com
gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981

reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])

--NKoe5XOeduwbEQHU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org

iD8DBQE7ZTLhdUt9X/gknwIRAsk9AJ4zb3/pslvNygfZ4S4Nt33GI4dzrgCg1DKb
57sFkHYl+OKRzObUUcd8rPU=
=xgdI
-----END PGP SIGNATURE-----

--NKoe5XOeduwbEQHU--