Commit cdfde1a6 authored by Nicolas Delaby's avatar Nicolas Delaby

define render_prefix for each report section

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24671 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 47ed2379
...@@ -69,17 +69,21 @@ portal.portal_skins.changeSkin(skin_name)\n ...@@ -69,17 +69,21 @@ portal.portal_skins.changeSkin(skin_name)\n
\n \n
# for unicode encoding\n # for unicode encoding\n
request.RESPONSE.setHeader("Content-Type", "application/xml; charset=utf-8")\n request.RESPONSE.setHeader("Content-Type", "application/xml; charset=utf-8")\n
\n render_prefix = \'x%s\' % report_section_idx\n
report_section.pushReport(portal)\n report_section.pushReport(portal, render_prefix=render_prefix)\n
\n \n
if report_section.getFormId():\n if report_section.getFormId():\n
form = getattr(context, report_section.getFormId())\n form = getattr(context, report_section.getFormId())\n
else:\n else:\n
form = None\n form = None\n
#context.log(request.text())\n
selection_name = request.get(\'prefixed_selection_name\')\n
data = context.render_report_section.pt_render(\n data = context.render_report_section.pt_render(\n
extra_context=dict(form=form, report_section=report_section))\n extra_context=dict(form=form,\n
report_section=report_section,\n
render_prefix=render_prefix))\n
\n \n
report_section.popReport(portal)\n report_section.popReport(portal, render_prefix=render_prefix)\n
\n \n
return report_section_idx, data\n return report_section_idx, data\n
</string> </value> </string> </value>
...@@ -129,9 +133,11 @@ return report_section_idx, data\n ...@@ -129,9 +133,11 @@ return report_section_idx, data\n
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
<string>_write_</string> <string>_write_</string>
<string>render_prefix</string>
<string>getattr</string> <string>getattr</string>
<string>form</string> <string>form</string>
<string>None</string> <string>None</string>
<string>selection_name</string>
<string>dict</string> <string>dict</string>
<string>data</string> <string>data</string>
</tuple> </tuple>
......
34 36
\ 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