Commit c9d7b2e2 authored by Romain Courteaud's avatar Romain Courteaud

Report data may be PData object, so cast to to a string.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24231 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e0ab5ae1
......@@ -70,13 +70,13 @@ 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
report_data = context.report_view.pt_render(\n
extra_context=dict(options=dict(),\n
extra_context=dict(options={},\n
rendered_report_item_list=[r[1] for r in report_section_list],\n
form=portal.restrictedTraverse(form_path)))\n
\n
attachment_list = (\n
{\'mime_type\': request.RESPONSE.getHeader(\'content-type\').split(\';\')[0],\n
\'content\': report_data,\n
\'content\': \'%s\' % report_data,\n
\'name\': [x[len(\'filename=\'):] for x in request.RESPONSE.getHeader(\n
\'content-disposition\').split(\';\') \\\n
if x.startswith(\'filename=\')][0]},)\n
......
23
\ No newline at end of file
27
\ 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