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

- call the template in the context of the form, like it's done if called directly

- remove XXX comment, format is no longer hardcoded

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26220 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 69ba574c
...@@ -72,8 +72,7 @@ report_section_list.sort(lambda a, b:cmp(a[0], b[0]))\n ...@@ -72,8 +72,7 @@ report_section_list.sort(lambda a, b:cmp(a[0], b[0]))\n
def dummyReportMethod():\n def dummyReportMethod():\n
return report_section_list\n return report_section_list\n
\n \n
# XXX Hardcoded format\n report_data = context.restrictedTraverse(form_path).report_view.pt_render(\n
report_data = context.report_view.pt_render(\n
extra_context=dict(options={\'format\': format},\n extra_context=dict(options={\'format\': format},\n
rendered_report_item_list=[r[1] for r in report_section_list],\n rendered_report_item_list=[r[1] for r in report_section_list],\n
report_method=dummyReportMethod,\n report_method=dummyReportMethod,\n
......
51 52
\ 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