From 21ccacc64d2d6ebb57268b6700ed1f96a178e089 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Sat, 27 Sep 2008 10:50:48 +0000 Subject: [PATCH] evaluate some TAL expressions only if they are required. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23860 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_xhtml_style/ListBox_asHTML.xml | 8 ++++---- product/ERP5/bootstrap/erp5_xhtml_style/bt/revision | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml index b816d4a1e7..2c3c9676c8 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml @@ -46,8 +46,6 @@ tal:define="field_id here/getId;\n form_id python: here.getForm().id;\n selection_name here/getSelectionName;\n - requested_selection_name here/getRequestedSelectionName;\n - selection_index here/getSelectionIndex;\n selection here/getSelection;\n portal_url_string here/getPortalUrlString;\n real_context here/getContext;\n @@ -59,7 +57,7 @@ is_domain_tree_supported here/isDomainTreeSupported;\n is_report_tree_supported here/isReportTreeSupported;\n show_select_column here/showSelectColumn;\n -\t show_anchor_column here/showAnchorColumn;\n + show_anchor_column here/showAnchorColumn;\n show_search_line here/showSearchLine;\n is_gadget_mode request/is_gadget_mode | nothing;">\n <!-- ListBox starts here. -->\n @@ -363,8 +361,10 @@ <tal:block tal:condition="is_report_tree_mode">\n <td class="Data" style="width: 50px; text-align: left; vertical-align: middle" colspan="1"\n tal:attributes="colspan python: show_search_line and 1 or (len(here.getSelectedColumnList()) + show_select_column + show_anchor_column + 1)"\n - tal:define="index python: selection_index is not None and \'&selection_index=%s\' % selection_index or \'\';\n + tal:define="selection_index here/getSelectionIndex;\n + index python: selection_index is not None and \'&selection_index=%s\' % selection_index or \'\';\n is_report_opened python: int(not here.getSelection().isReportOpened());\n + requested_selection_name here/getRequestedSelectionName;\n url here/getUrl"><tal:block tal:repeat="i python: range(0, 6)"> <a href="?selection_name=default&selection_index=0&report_depth:int=0"\n tal:attributes="href string:${url}?selection_name=${requested_selection_name}${index}&report_depth:int=${i}"\n tal:content="i">0</a></tal:block> - <a href="?selection_name=default&selection_index=0&is_report_opened:int=0"\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 51d3b0f9e1..e25083957d 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -617 \ No newline at end of file +618 \ No newline at end of file -- 2.30.9