pythonchameleon

Using global names starting with "_" in Chameleon template engine


While upgrading chameleon template engine to version 2 , I've got errors like:

 NameError: global name '_c' is not defined

where '_c' is used as a variable in template like:

 tal:content="_c(item['category']"

in chameleon 1.2 everything was ok.
Is there any way to make it working without changing all names starting from "_" in templates?


Solution

  • That was a bug.

    New versions of chameleon fix this.