[Erp5-report] r26823 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 6 09:56:54 CEST 2009


Author: fabien
Date: Wed May  6 09:56:51 2009
New Revision: 26823

URL: http://svn.erp5.org?rev=26823&view=rev
Log:
remove some unused variable declaration. Declare variable used only gadget mode only in gadget case. This should make the page displaying a bit faster.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml?rev=26823&r1=26822&r2=26823&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml [utf8] Wed May  6 09:56:51 2009
@@ -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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml?rev=26823&r1=26822&r2=26823&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml [utf8] Wed May  6 09:56:51 2009
@@ -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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=26823&r1=26822&r2=26823&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Wed May  6 09:56:51 2009
@@ -1,1 +1,1 @@
-741
+744




More information about the Erp5-report mailing list