Trying out Chameleon

My experiences with Chameleon, testing compatibility and z3c.form

I’m about to upgrade a sizable client deployment to Plone 4 and wanted to see if I could switch to the Chameleon template engine at the same time. I’m recording things I found here:

Testing both with and without Chameleon

For some add-ons of mine, I found it useful to be able to run the tests both with and without Chameleon. It turns out to be remarkably simple with buildout.

Integrating and z3c.form

There are some gotchas when using both and z3c.form together. You have to be sure to include z3c.ptcompat, which you can do with z3c.form’s poorly named “extra” extras_require. I did this in my project’s by adding the following:


Unfortunately, z3c.ptcompat uses an environment variable to switch on the use of Chameleon so you have to add the environment variable to the buildout instances and test runners:

environment-vars =
environment = testenv

Updated on 07 October 2010

Imported from Plone on Mar 15, 2021. The date for this update is the last modified date in Plone.


comments powered by Disqus