Compatibility with Chameleon

The 'test' function seems to disappear in a few contexts. This should be fixed in Chameleon, but we work around it here for now
parent 2e7945bc
......@@ -104,8 +104,9 @@
<tal:block tal:condition="report_item/getTitle" tal:define="level report_item/getLevel;\n
column_len column_len | python: 5">\n
<table:table-cell table:style-name="report-title"\n
tal:define="level_style python: level &gt; 1 and level or \'\'"\n
tal:attributes="table:number-columns-spanned python: column_len;\n
table:style-name python:test(level&gt;1, \'report-title%s\' % level, \'report-title\');" \n
table:style-name string:report-title${level_style}" \n
<text:p tal:content="report_item/getTitle" ></text:p>\n
......@@ -145,8 +146,7 @@
]]></unicode> </value>
......@@ -176,7 +176,7 @@
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <unicode></unicode> </value>
\ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment