Commit d910bdf1 authored by Rie Kozai's avatar Rie Kozai

modifies report-view, add validation of 'field_list'

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16048 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3b31ee4a
......@@ -67,9 +67,11 @@ dQEAAAAA</string> </value>
\n
<tal:block tal:define="field_list python:form.get_fields_in_group(\'bottom\')">\n
<tal:block tal:define="global column_len python:3"/>\n
<tal:block tal:define="field python:field_list[0]">\n
<tal:block tal:condition="python:field.meta_type == \'ListBox\' or (field.meta_type == \'ProxyField\' and field.getRecursiveTemplateField().meta_type == \'ListBox\')">\n
<tal:block tal:define="column_list python: field.get_value(\'columns\'); global column_len python: len(column_list)" />\n
<tal:block tal:condition=\'field_list\'>\n
<tal:block tal:define="field python:field_list[0]">\n
<tal:block tal:condition="python:field.meta_type == \'ListBox\' or (field.meta_type == \'ProxyField\' and field.getRecursiveTemplateField().meta_type == \'ListBox\')">\n
<tal:block tal:define="column_list python: field.get_value(\'columns\'); global column_len python: len(column_list)" />\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
......
......@@ -62,7 +62,7 @@
<tal:block tal:define="report_item_list python:report_method(); field_errors python: request.get(\'field_errors,{}\'); dummy python: request.set(\'here\', here);global sheet_per_reportsection python: int(request.get(\'sheet_per_report_section\', 0));global column_len python:3">\n
\n
<tal:block tal:define="portal_object here/portal_url/getPortalObject"> \n
<tal:block tal:condition="python: sheet_per_reportsection == 0">\n
<tal:block tal:condition="not: sheet_per_reportsection">\n
<table:table tal:attributes="table:name python:here.getProperty(\'title\')">\n
<tal:block tal:repeat="report_item report_item_list">\n
<tal:block metal:define-macro="make_report_item_table" tal:define="here python:report_item.getObject(portal_object); dummy python:report_item.pushReport(portal_object)">\n
......@@ -105,7 +105,7 @@
</tal:block>\n
</table:table>\n
</tal:block>\n
<tal:block tal:condition="python: sheet_per_reportsection == 1">\n
<tal:block tal:condition="sheet_per_reportsection">\n
<tal:block tal:repeat="report_item python: report_item_list">\n
<tal:block tal:condition="python: report_item.getFormId()">\n
<table:table tal:attributes="table:name python: unicode(report_item.getTitle(), \'utf-8\')">\n
......
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