[z3-five] Python expression "builtins" problem.

Lennart Regebro regebro at gmail.com
Fri Jul 22 15:06:01 CEST 2005


It turns out that I can't use the "builtins" in Python expressions
under Five. That is, things like test() and the string, math, random,
whrandom and sequence modules.

This has to do with the TrustedExpression rebinding. It rebinds
PythonExpr to python expressions, but these builtings seem not to
exist there, while standard Zope Page templates use ZRPythonExpr
instead.

No, using ZRPythonExpr doe immediately solve the problem. BUT, then
python expressions are no longer trusted, which breaks tons of other
stuff!

Grah!

Anybod with insight into this are welcome to fix it, if possible.  I sure can't.

-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the z3-five mailing list