Commit eb433dcc authored by Jérome Perrin's avatar Jérome Perrin

deferred_style: make sure that the number of report sections is correct in the final report

parent 9ffbfd64
...@@ -97,7 +97,7 @@ for idx, report_section in enumerate(report_section_list):\n ...@@ -97,7 +97,7 @@ for idx, report_section in enumerate(report_section_list):\n
).Base_renderReportSection(skin_name=skin_name,\n ).Base_renderReportSection(skin_name=skin_name,\n
localizer_language=localizer_language,\n localizer_language=localizer_language,\n
report_section=report_section,\n report_section=report_section,\n
report_section_idx=idx,\n report_section_idx=idx,\n
request_other=request_other)\n request_other=request_other)\n
\n \n
activity_context = context\n activity_context = context\n
...@@ -114,6 +114,7 @@ activity_context.activate(activity=\'SQLQueue\', after_tag=tag, priority=priorit ...@@ -114,6 +114,7 @@ activity_context.activate(activity=\'SQLQueue\', after_tag=tag, priority=priorit
form_path=form.getPhysicalPath(),\n form_path=form.getPhysicalPath(),\n
user_name=user_name,\n user_name=user_name,\n
format=format,\n format=format,\n
report_section_count=len(report_section_list)\n
)\n )\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -63,8 +63,9 @@ with portal.Localizer.translationContext(localizer_language):\n ...@@ -63,8 +63,9 @@ with portal.Localizer.translationContext(localizer_language):\n
portal.portal_skins.changeSkin(skin_name)\n portal.portal_skins.changeSkin(skin_name)\n
\n \n
report_section_list = [r.getResult() for r in ap.getResultList()]\n report_section_list = [r.getResult() for r in ap.getResultList()]\n
assert len(report_section_list) == report_section_count\n
report_section_list.sort(lambda a, b:cmp(a[0], b[0]))\n report_section_list.sort(lambda a, b:cmp(a[0], b[0]))\n
\n \n
def dummyReportMethod():\n def dummyReportMethod():\n
return report_section_list\n return report_section_list\n
\n \n
...@@ -95,7 +96,7 @@ portal.ERP5Site_notifyReportComplete(\n ...@@ -95,7 +96,7 @@ portal.ERP5Site_notifyReportComplete(\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>active_process_url, skin_name, localizer_language, title, request_other, form_path, user_name, format</string> </value> <value> <string>active_process_url, skin_name, localizer_language, title, request_other, form_path, user_name, format, report_section_count</string> </value>
</item> </item>
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
......
110 111
\ 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