Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jinja SandboxedEnvironment and Zope2 Restricted Python

Jinja's sandbox and the Zope 2 RestrictedPython seem to solve similar problems. Is there a way to layer them, i.e. use RestrictedPython policies in a Jinja environment? The use case is retrofitting Jinja templates to an existing Zope2-based product, to replace ZPT / TAL.

like image 704
Alex Morega Avatar asked Nov 13 '22 11:11

Alex Morega


1 Answers

Unfortunately, no. Jinja's and Zope's implementations are highly different, and not interoperable.

like image 115
Corey Richardson Avatar answered Jan 04 '23 22:01

Corey Richardson