Commit 7a96a61b authored by Jérome Perrin's avatar Jérome Perrin

Be more robust on broken multi item fields in ods style (similar to

http://svn.erp5.org/?view=revision&revision=34129 )

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35014 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 051cbd03
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
<tal:block tal:condition="python: same_type(value, []) or same_type(value, ())">\n <tal:block tal:condition="python: same_type(value, []) or same_type(value, ())">\n
<tal:block tal:repeat="item value">\n <tal:block tal:repeat="item value">\n
<text:p tal:condition="not:item_list" tal:content="item"></text:p>\n <text:p tal:condition="not:item_list" tal:content="item"></text:p>\n
<text:p tal:condition="item_list" tal:content="python: [i[0] for i in item_list if i[1] == item][0]"></text:p>\n <text:p tal:condition="item_list" tal:on-error="item" tal:content="python: [i[0] for i in item_list if i[1] == item][0]"></text:p>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="python: (not (same_type(value, []) or same_type(value, ()))) and value is not None">\n <tal:block tal:condition="python: (not (same_type(value, []) or same_type(value, ()))) and value is not None">\n
......
233 234
\ 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