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
).Base_renderReportSection(skin_name=skin_name,\n
localizer_language=localizer_language,\n
report_section=report_section,\n
report_section_idx=idx,\n
report_section_idx=idx,\n
request_other=request_other)\n
\n
activity_context = context\n
......@@ -114,6 +114,7 @@ activity_context.activate(activity=\'SQLQueue\', after_tag=tag, priority=priorit
form_path=form.getPhysicalPath(),\n
user_name=user_name,\n
format=format,\n
report_section_count=len(report_section_list)\n
)\n
</string> </value>
</item>
......
......@@ -63,8 +63,9 @@ with portal.Localizer.translationContext(localizer_language):\n
portal.portal_skins.changeSkin(skin_name)\n
\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
\n
\n
def dummyReportMethod():\n
return report_section_list\n
\n
......@@ -95,7 +96,7 @@ portal.ERP5Site_notifyReportComplete(\n
</item>
<item>
<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>
<key> <string>_proxy_roles</string> </key>
......
110
\ No newline at end of file
111
\ 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