Commit fb56d333 authored by Fabien Morin's avatar Fabien Morin

remove some unused variable declaration. Declare variable used only gadget...

remove some unused variable declaration. Declare variable used only gadget mode only in gadget case. This should make the page displaying a bit faster.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26823 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04150baa
......@@ -62,11 +62,6 @@
is_web_mode request/is_web_mode | nothing;\n
list_style python:request.get(\'list_style\', is_web_mode and \'table\' or None);\n
is_gadget_mode request/is_gadget_mode | nothing;\n
box_relative_url python: request.get(\'box_relative_url\', \'\');\n
box python: real_context.restrictedTraverse(box_relative_url); \n
box_id python: \'visual_\'+box.getId();\n
dom_id python: request.get(\'dom_id\',None) or box_id;\n
Base_translateString python: real_context.Base_translateString;\n
">\n
<!-- ListBox starts here. -->\n
<input type="hidden" name="list_selection_name" value="default" tal:attributes="value selection_name" />\n
......@@ -77,7 +72,9 @@
\n
<tal:block tal:condition="is_gadget_mode"\n
tal:define="global box_relative_url python: request.get(\'box_relative_url\', \'\');\n
global box_id python: \'visual_%s\' %box_relative_url.split(\'/\')[-1];">\n
global box python: real_context.restrictedTraverse(box_relative_url); \n
global box_id python: \'visual_%s\' %box_relative_url.split(\'/\')[-1];\n
global dom_id python: request.get(\'dom_id\',None) or box_id;">\n
<input tal:condition="python:form_id" \n
type="hidden" name="gadget_form_id"\n
tal:attributes="value form_id" />\n
......
......@@ -179,7 +179,7 @@
current_page_start python: (listbox_max_lines * (current_page - 1)) + 1;\n
current_page_stop python: (total_line < current_page_max) and total_line or current_page_max;">\n
<tal:block condition="python: total_line > 0"\n
tal:replace="structure python: Base_translateString(\'Results <em>${start} - ${stop}</em> of <em>${total}</em>.\', mapping=dict(start=current_page_start, stop=current_page_stop, total=total_line))"/>\n
tal:replace="structure python: real_context.Base_translateString(\'Results <em>${start} - ${stop}</em> of <em>${total}</em>.\', mapping=dict(start=current_page_start, stop=current_page_stop, total=total_line))"/>\n
<span tal:condition="python: total_line == 0" class="warning" i18n:translate="" i18n:domain="ui">No result !</span>\n
</span>\n
</caption>\n
......
741
\ No newline at end of file
744
\ 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