From 44ef10ce6523c8dae189f4a4fb2e426dd5b02ee8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 7 Dec 2007 17:59:36 +0000
Subject: [PATCH] fix NameError `form` in Base_configureSortOn

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18151 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_core/Base_configureSortOn.xml   | 11 +++++------
 product/ERP5/bootstrap/erp5_core/bt/revision          |  2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_configureSortOn.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_configureSortOn.xml
index 52e742cb6f..0de3de5038 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_configureSortOn.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_configureSortOn.xml
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.PythonScripts.PythonScript</string>
-          <string>PythonScript</string>
-        </tuple>
-        <none/>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -76,6 +73,7 @@ from Products.Formulator.Errors import ValidationError, FormValidationError\n
 \n
 request = context.REQUEST\n
 field_sort_type = request.form.get(\'field_sort_type\', None)\n
+form = context.Folder_viewSortOnDialog\n
 \n
 try:\n
   # No validation for now\n
@@ -156,15 +154,16 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
                             <string>request</string>
                             <string>None</string>
                             <string>field_sort_type</string>
+                            <string>form</string>
                             <string>sort_on</string>
                             <string>i</string>
                             <string>_getiter_</string>
                             <string>k</string>
                             <string>_getitem_</string>
                             <string>v</string>
+                            <string>_inplacevar_</string>
                             <string>t</string>
                             <string>validation_errors</string>
-                            <string>form</string>
                             <string>field_errors</string>
                             <string>redirect_url</string>
                           </tuple>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision
index 748e6f1af5..a869e998c0 100644
--- a/product/ERP5/bootstrap/erp5_core/bt/revision
+++ b/product/ERP5/bootstrap/erp5_core/bt/revision
@@ -1 +1 @@
-637
\ No newline at end of file
+638
\ No newline at end of file
-- 
2.30.9