Commit 704d38f0 authored by Jérome Perrin's avatar Jérome Perrin

Generate some valid ODF in the case of domain tree

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25911 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d3569117
......@@ -101,20 +101,6 @@
is_report_tree_mode selection/report_tree_mode | nothing;" >\n
\n
<tal:block tal:condition="python: len(listboxline_list) > 1" >\n
<tal:block tal:condition="python: is_domain_tree_mode">\n
<tal:block tal:define="domain_list python: selection.getDomainList()"\n
tal:condition="python: len(domain_list) > 0" >\n
<table:table table:style-name=\'listbox-table\' table:name=\'listbox-table\'>\n
<table:table-column table:style-name=\'listbox-table.A\'/>\n
<table:table-row>\n
<table:table-cell table:style-name=\'listbox-table.A1\' office:value-type=\'string\'>\n
<text:p text:style-name=\'listbox-header\' tal:content="python: domain_list[-1]" />\n
</table:table-cell>\n
</table:table-row>\n
</table:table>\n
</tal:block>\n
</tal:block>\n
\n
<table:table table:style-name=\'listbox-table\' table:name=\'listbox-table\'>\n
<tal:block tal:repeat="column_item python:listboxline_list[0].getColumnItemList()">\n
<table:table-column table:style-name=\'listbox-table.A\'/>\n
......@@ -147,6 +133,15 @@
\n
<tal:block tal:condition="python: listboxline.isTitleLine()">\n
<table:table-header-rows>\n
<table:table-row>\n
<table:table-cell table:style-name=\'listbox-table.A1\' \n
tal:attributes="table:number-columns-spanned python: len(listboxline.getColumnItemList())" \n
office:value-type=\'string\'>\n
<text:p tal:condition=\'is_domain_tree_mode\'\n
text:style-name=\'listbox-header\'\n
tal:content="python: selection.getDomain() is not None and selection.getDomain().asDomainItemDict().values()[-1].getTitle() or \'\'"/>\n
</table:table-cell>\n
</table:table-row>\n
<table:table-row>\n
<table:table-cell table:style-name=\'listbox-table.A1\' \n
tal:attributes="table:number-columns-spanned python: len(listboxline.getColumnItemList())" \n
......
69
\ No newline at end of file
71
\ 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