From 1d66b37a19ce453bb330488b323df492f8896bda Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Tue, 9 Mar 2010 09:38:56 +0000
Subject: [PATCH] use formbox for target solver configuration.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33517 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Accept%20Solver.xml          |  22 ++-
 .../portal_types/Adopt%20Solver.xml           |   2 +-
 .../Production%20Reduction%20Solver.xml       |   2 +-
 .../Quantity%20Cancel%20Solver.xml            |   2 +-
 .../Quantity%20Split%20Solver.xml             |   2 +-
 .../portal_types/Unify%20Solver.xml           |  22 ++-
 .../listbox_solver.xml                        |  22 ++-
 ...ySplitSolver_viewConfigurationFormBox.xml} |   4 +-
 .../my_delivery_solver.xml                    |   0
 .../my_start_date.xml                         |   0
 .../my_stop_date.xml                          |   0
 .../Solver_viewConfigurationFormBox.xml       | 125 ++++++++++++++++++
 12 files changed, 193 insertions(+), 10 deletions(-)
 rename bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/{QuantitySplitSolver_viewConfiguration.xml => QuantitySplitSolver_viewConfigurationFormBox.xml} (97%)
 rename bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/{QuantitySplitSolver_viewConfiguration => QuantitySplitSolver_viewConfigurationFormBox}/my_delivery_solver.xml (100%)
 rename bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/{QuantitySplitSolver_viewConfiguration => QuantitySplitSolver_viewConfigurationFormBox}/my_start_date.xml (100%)
 rename bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/{QuantitySplitSolver_viewConfiguration => QuantitySplitSolver_viewConfigurationFormBox}/my_stop_date.xml (100%)
 create mode 100644 bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Solver_viewConfigurationFormBox.xml

diff --git a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Accept%20Solver.xml b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Accept%20Solver.xml
index 9f1713d88c..d8c8892455 100644
--- a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Accept%20Solver.xml
+++ b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Accept%20Solver.xml
@@ -21,7 +21,19 @@
         </item>
         <item>
             <key> <string>configuration_form_id</string> </key>
-            <value> <string>Solver_viewConfiguration</string> </value>
+            <value> <string>Solver_viewConfigurationFormBox</string> </value>
+        </item>
+        <item>
+            <key> <string>configuration_property_list</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>delivery_solver</string> </key>
+            <value>
+              <tuple/>
+            </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -49,6 +61,14 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>line_exclusive</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>line_grouping</string> </key>
+            <value> <int>0</int> </value>
+        </item>
         <item>
             <key> <string>permission</string> </key>
             <value>
diff --git a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Adopt%20Solver.xml b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Adopt%20Solver.xml
index 6edbc16d3c..b4995b059e 100644
--- a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Adopt%20Solver.xml
+++ b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Adopt%20Solver.xml
@@ -21,7 +21,7 @@
         </item>
         <item>
             <key> <string>configuration_form_id</string> </key>
-            <value> <string>Solver_viewConfiguration</string> </value>
+            <value> <string>Solver_viewConfigurationFormBox</string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>
diff --git a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Production%20Reduction%20Solver.xml b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Production%20Reduction%20Solver.xml
index ffd9ebf8f3..50145d8846 100644
--- a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Production%20Reduction%20Solver.xml
+++ b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Production%20Reduction%20Solver.xml
@@ -21,7 +21,7 @@
         </item>
         <item>
             <key> <string>configuration_form_id</string> </key>
-            <value> <string>QuantitySplit_viewConfiguration</string> </value>
+            <value> <string>QuantitySplit_viewConfigurationFormBox</string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>
diff --git a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Cancel%20Solver.xml b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Cancel%20Solver.xml
index 54402035c2..62f27b3c8d 100644
--- a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Cancel%20Solver.xml
+++ b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Cancel%20Solver.xml
@@ -21,7 +21,7 @@
         </item>
         <item>
             <key> <string>configuration_form_id</string> </key>
-            <value> <string>Solver_viewConfiguration</string> </value>
+            <value> <string>Solver_viewConfigurationFormBox</string> </value>
         </item>
         <item>
             <key> <string>configuration_property_list</string> </key>
diff --git a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Split%20Solver.xml b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Split%20Solver.xml
index 203902c91f..1210c640c6 100644
--- a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Split%20Solver.xml
+++ b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Split%20Solver.xml
@@ -21,7 +21,7 @@
         </item>
         <item>
             <key> <string>configuration_form_id</string> </key>
-            <value> <string>QuantitySplitSolver_viewConfiguration</string> </value>
+            <value> <string>QuantitySplitSolver_viewConfigurationFormBox</string> </value>
         </item>
         <item>
             <key> <string>configuration_property_list</string> </key>
diff --git a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Unify%20Solver.xml b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Unify%20Solver.xml
index 994e41d575..0702dae3c6 100644
--- a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Unify%20Solver.xml
+++ b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Unify%20Solver.xml
@@ -21,7 +21,19 @@
         </item>
         <item>
             <key> <string>configuration_form_id</string> </key>
-            <value> <string>Solver_viewConfiguration</string> </value>
+            <value> <string>UnifySolver_viewConfigurationFormBox</string> </value>
+        </item>
+        <item>
+            <key> <string>configuration_property_list</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>delivery_solver</string> </key>
+            <value>
+              <tuple/>
+            </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -49,6 +61,14 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>line_exclusive</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>line_grouping</string> </key>
+            <value> <int>0</int> </value>
+        </item>
         <item>
             <key> <string>permission</string> </key>
             <value>
diff --git a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_solver.xml b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_solver.xml
index ff1214f7da..4a9a989548 100644
--- a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_solver.xml
+++ b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Delivery_viewSolveDivergenceDialog/listbox_solver.xml
@@ -121,7 +121,9 @@
                 </item>
                 <item>
                     <key> <string>default</string> </key>
-                    <value> <string></string> </value>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
                 </item>
                 <item>
                     <key> <string>description</string> </key>
@@ -158,7 +160,7 @@
                 <item>
                     <key> <string>items</string> </key>
                     <value>
-                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
                     </value>
                 </item>
                 <item>
@@ -274,6 +276,22 @@
     </pickle>
   </record>
   <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>cell/getSolver</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
     <pickle>
       <tuple>
         <global name="TALESMethod" module="Products.Formulator.TALESField"/>
diff --git a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfiguration.xml b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfigurationFormBox.xml
similarity index 97%
rename from bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfiguration.xml
rename to bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfigurationFormBox.xml
index 1b0fdbe57b..43eeed8815 100644
--- a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfiguration.xml
+++ b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfigurationFormBox.xml
@@ -113,7 +113,7 @@
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>QuantitySplitSolver_viewConfiguration</string> </value>
+            <value> <string>QuantitySplitSolver_viewConfigurationFormBox</string> </value>
         </item>
         <item>
             <key> <string>method</string> </key>
@@ -121,7 +121,7 @@
         </item>
         <item>
             <key> <string>name</string> </key>
-            <value> <string>SolverDecision_viewConfiguration</string> </value>
+            <value> <string>QuantitySplitSolver_viewConfigurationFormBox</string> </value>
         </item>
         <item>
             <key> <string>pt</string> </key>
diff --git a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfiguration/my_delivery_solver.xml b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfigurationFormBox/my_delivery_solver.xml
similarity index 100%
rename from bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfiguration/my_delivery_solver.xml
rename to bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfigurationFormBox/my_delivery_solver.xml
diff --git a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfiguration/my_start_date.xml b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfigurationFormBox/my_start_date.xml
similarity index 100%
rename from bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfiguration/my_start_date.xml
rename to bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfigurationFormBox/my_start_date.xml
diff --git a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfiguration/my_stop_date.xml b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfigurationFormBox/my_stop_date.xml
similarity index 100%
rename from bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfiguration/my_stop_date.xml
rename to bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/QuantitySplitSolver_viewConfigurationFormBox/my_stop_date.xml
diff --git a/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Solver_viewConfigurationFormBox.xml b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Solver_viewConfigurationFormBox.xml
new file mode 100644
index 0000000000..c166ccbcdb
--- /dev/null
+++ b/bt5/erp5_simulation/SkinTemplateItem/portal_skins/erp5_simulation/Solver_viewConfigurationFormBox.xml
@@ -0,0 +1,125 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ERP5Form" module="Products.ERP5Form.Form"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary/>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_objects</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>action</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>edit_order</string> </key>
+            <value>
+              <list/>
+            </value>
+        </item>
+        <item>
+            <key> <string>encoding</string> </key>
+            <value> <string>UTF-8</string> </value>
+        </item>
+        <item>
+            <key> <string>enctype</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <list>
+                <string>left</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>groups</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>left</string> </key>
+                    <value>
+                      <list/>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Solver_viewConfigurationFormBox</string> </value>
+        </item>
+        <item>
+            <key> <string>method</string> </key>
+            <value> <string>POST</string> </value>
+        </item>
+        <item>
+            <key> <string>name</string> </key>
+            <value> <string>Solver_viewConfiguration</string> </value>
+        </item>
+        <item>
+            <key> <string>pt</string> </key>
+            <value> <string>embedded_form_render</string> </value>
+        </item>
+        <item>
+            <key> <string>row_length</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+        <item>
+            <key> <string>stored_encoding</string> </key>
+            <value> <string>UTF-8</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Configuration</string> </value>
+        </item>
+        <item>
+            <key> <string>unicode_mode</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>update_action</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>update_action_title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
-- 
2.30.9