Commit 4e323fad authored by Vincent Pelletier's avatar Vincent Pelletier

Generate render_prefix and pass it to pop/push report methods. It is also...

Generate render_prefix and pass it to pop/push report methods. It is also implicitely transmited to field_render for it to pass to the field renderer.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22005 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8003c7a4
...@@ -61,7 +61,8 @@ ...@@ -61,7 +61,8 @@
<tal:block tal:define="portal_object here/getPortalObject">\n <tal:block tal:define="portal_object here/getPortalObject">\n
<tal:block tal:repeat="report_item report_method">\n <tal:block tal:repeat="report_item report_method">\n
<tal:block tal:define="here python: report_item.getObject(portal_object);\n <tal:block tal:define="here python: report_item.getObject(portal_object);\n
dummy python: report_item.pushReport(portal_object)">\n render_prefix python: \'x%s\' % (repeat[\'report_item\'].index, );\n
dummy python: report_item.pushReport(portal_object, render_prefix=render_prefix)">\n
<span tal:condition="report_item/getTitle"\n <span tal:condition="report_item/getTitle"\n
tal:content="report_item/getTitle"\n tal:content="report_item/getTitle"\n
tal:attributes="class string:report_title_level_${report_item/getLevel}" />\n tal:attributes="class string:report_title_level_${report_item/getLevel}" />\n
...@@ -70,7 +71,7 @@ ...@@ -70,7 +71,7 @@
<tal:block metal:use-macro="here/form_render/macros/master" />\n <tal:block metal:use-macro="here/form_render/macros/master" />\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
<tal:block tal:define="dummy python:report_item.popReport(portal_object)" />\n <tal:block tal:define="dummy python:report_item.popReport(portal_object, render_prefix=render_prefix)" />\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
......
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