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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Nov 2 21:57:57 CET 2007


Author: yo
Date: Fri Nov  2 21:57:56 2007
New Revision: 17379

URL: http://svn.erp5.org?rev=17379&view=rev
Log:
2007-11-02 yo
* A minor optimization.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_filterParameterList.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/ERP5Site_filterParameterList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_filterParameterList.xml?rev=17379&r1=17378&r2=17379&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_filterParameterList.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_filterParameterList.xml Fri Nov  2 21:57:56 2007
@@ -78,9 +78,7 @@
 # Cancel url is always overwritten, except when rendering\n
 # a dialog. So this is safe to propagate it.\n
 \n
-kept_names = dict([(key, None) for key in kept_names])\n
-to_keep = kept_names.has_key\n
-return dict([(k, v) for k, v in parameter_list.items() if to_keep(k)])\n
+return dict((item for item in parameter_list.iteritems() if item[0] in kept_names))\n
 </string> </value>
         </item>
         <item>
@@ -132,15 +130,7 @@
                             <string>parameter_list</string>
                             <string>kept_names</string>
                             <string>dict</string>
-                            <string>append</string>
-                            <string>$append0</string>
-                            <string>_getiter_</string>
-                            <string>key</string>
-                            <string>None</string>
                             <string>_getattr_</string>
-                            <string>to_keep</string>
-                            <string>k</string>
-                            <string>v</string>
                           </tuple>
                         </value>
                     </item>

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=17379&r1=17378&r2=17379&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Fri Nov  2 21:57:56 2007
@@ -1,1 +1,1 @@
-424
+425




More information about the Erp5-report mailing list