diff --git a/bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_report.xml b/bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_report.xml index 7f157651102b2e8286abf69636ae120788281c7e..194693683ba84769157ec0f3b802ac06b1bf6a26 100644 --- a/bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_report.xml +++ b/bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_report.xml @@ -69,10 +69,14 @@ portal.portal_skins.changeSkin(skin_name)\n report_section_list = [r.getResult() for r in ap.getResultList()]\n report_section_list.sort(lambda a, b:cmp(a[0], b[0]))\n \n +def dummyReportMethod():\n + return report_section_list\n +\n # XXX Hardcoded format\n report_data = context.report_view.pt_render(\n extra_context=dict(options={\'format\': \'pdf\'},\n rendered_report_item_list=[r[1] for r in report_section_list],\n + report_method=dummyReportMethod,\n form=portal.restrictedTraverse(form_path)))\n \n attachment_list = (\n @@ -156,6 +160,7 @@ portal.portal_notifications.sendMessage(\n <string>_getiter_</string> <string>r</string> <string>report_section_list</string> + <string>dummyReportMethod</string> <string>dict</string> <string>_getitem_</string> <string>report_data</string> diff --git a/bt5/erp5_deferred_style/bt/revision b/bt5/erp5_deferred_style/bt/revision index dc7b54ad014355b948b93c4c6c5891da053d5fdd..3e932fe8f188bb6dbcb02afe1306fa6e0b90357b 100644 --- a/bt5/erp5_deferred_style/bt/revision +++ b/bt5/erp5_deferred_style/bt/revision @@ -1 +1 @@ -33 \ No newline at end of file +34 \ No newline at end of file