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 @@ ...@@ -104,8 +104,9 @@
<tal:block tal:condition="report_item/getTitle" tal:define="level report_item/getLevel;\n <tal:block tal:condition="report_item/getTitle" tal:define="level report_item/getLevel;\n
column_len column_len | python: 5">\n column_len column_len | python: 5">\n
<table:table-cell table:style-name="report-title"\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 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
office:value-type=\'string\'\n office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'>\n table:number-rows-spanned=\'1\'>\n
<text:p tal:content="report_item/getTitle" ></text:p>\n <text:p tal:content="report_item/getTitle" ></text:p>\n
...@@ -145,8 +146,7 @@ ...@@ -145,8 +146,7 @@
</tal:block>\n </tal:block>\n
</office:spreadsheet>\n </office:spreadsheet>\n
</office:body>\n </office:body>\n
</office:document-content>\n </office:document-content>
]]></unicode> </value> ]]></unicode> </value>
</item> </item>
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <unicode></unicode> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
254 255
\ 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