Commit 03c3e961 authored by Romain Courteaud's avatar Romain Courteaud

As style is hardcoded, also hardcode format for now, until a better solution is found.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24232 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c9d7b2e2
......@@ -61,7 +61,7 @@ N_ = portal.Base_translateString\n
active_process = portal.portal_activities.newActiveProcess()\n
user_name = context.portal_membership.getAuthenticatedMember().getUserName()\n
\n
skin_name = \'ODT\' # hardcoded for now\n
skin_name = \'ODT\' # XXX hardcoded for now\n
tag = \'active-report-%s\' % random.randint(0, 1000)\n
priority = 3\n
\n
......
......@@ -69,8 +69,9 @@ 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
# XXX Hardcoded format\n
report_data = context.report_view.pt_render(\n
extra_context=dict(options={},\n
extra_context=dict(options={\'format\': \'pdf\'},\n
rendered_report_item_list=[r[1] for r in report_section_list],\n
form=portal.restrictedTraverse(form_path)))\n
\n
......
27
\ No newline at end of file
28
\ 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