From dbcddc0ad0b7922308923b00276b962a6822c4c0 Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Fri, 2 Nov 2007 21:05:34 +0000
Subject: [PATCH] 2007-11-02 yo * A minor optimization.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17380 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_core/ERP5Site_renderHTTPParameterList.xml   |  9 +--------
 product/ERP5/bootstrap/erp5_core/bt/revision         |  2 +-
 .../ERP5Site_filterParameterList.xml                 | 12 +-----------
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision  |  2 +-
 4 files changed, 4 insertions(+), 21 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_renderHTTPParameterList.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_renderHTTPParameterList.xml
index b27b984a4a..074e442e94 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_renderHTTPParameterList.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_renderHTTPParameterList.xml
@@ -69,7 +69,7 @@
         <item>
             <key> <string>_body</string> </key>
             <value> <string>from ZTUtils import make_query\n
-return make_query(dict([(k, v) for k, v in http_parameter_list.items() if v is not None]))\n
+return make_query((item for item in http_parameter_list.iteritems() if item[1] is not None))\n
 </string> </value>
         </item>
         <item>
@@ -121,14 +121,7 @@ return make_query(dict([(k, v) for k, v in http_parameter_list.items() if v is n
                             <string>http_parameter_list</string>
                             <string>ZTUtils</string>
                             <string>make_query</string>
-                            <string>dict</string>
-                            <string>append</string>
-                            <string>$append0</string>
-                            <string>_getiter_</string>
                             <string>_getattr_</string>
-                            <string>k</string>
-                            <string>v</string>
-                            <string>None</string>
                           </tuple>
                         </value>
                     </item>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision
index 4c7798cefd..f5bba53e70 100644
--- a/product/ERP5/bootstrap/erp5_core/bt/revision
+++ b/product/ERP5/bootstrap/erp5_core/bt/revision
@@ -1 +1 @@
-553
\ No newline at end of file
+556
\ No newline at end of file
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_filterParameterList.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_filterParameterList.xml
index bd19d61f95..9e1d93834c 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_filterParameterList.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_filterParameterList.xml
@@ -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 @@ return dict([(k, v) for k, v in parameter_list.items() if to_keep(k)])\n
                             <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>
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 59b8937b62..3cf63f91e6 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-424
\ No newline at end of file
+425
\ No newline at end of file
-- 
2.30.9