Commit 1e3acb66 authored by Yusei Tahara's avatar Yusei Tahara

bt5/erp5_simulation_fast_input: Fix the solve divergence dialog to make it work again.

parent 8e64fca3
......@@ -17,6 +17,6 @@ if solver:
solver_decision.setSolverValue(solver_value)
else:
solver_decision.setSolverList([])
return ''
#return solver_decision.Delivery_viewSolveDivergenceDialog.listbox_solver_configuration.widget.render(
return solver_decision.SolverDecision_renderSolverConfiguration(context)
return solver_decision.SolverDecision_render(context)
......@@ -94,6 +94,7 @@
<string>listbox_comment</string>
<string>listbox_divergence</string>
<string>listbox_solver_configuration</string>
<string>your_dummy_validator_field_for_gadget</string>
</list>
</value>
</item>
......@@ -102,6 +103,7 @@
<value>
<list>
<string>your_workflow_action</string>
<string>your_dummy_html</string>
</list>
</value>
</item>
......
......@@ -236,10 +236,24 @@
<key> <string>js_sandbox</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>renderjs_extra</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Solve Divergence</string> </value>
</item>
<item>
<key> <string>validator_field_id</string> </key>
<value> <string>your_dummy_validator_field_for_gadget</string> </value>
</item>
<item>
<key> <string>validator_form_id</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
......
......@@ -9,7 +9,9 @@
<item>
<key> <string>delegated_list</string> </key>
<value>
<list/>
<list>
<string>default</string>
</list>
</value>
</item>
<item>
......@@ -50,6 +52,12 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -69,6 +77,10 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>listbox_solver</string> </value>
......@@ -91,4 +103,17 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:\'\'</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -6,6 +6,16 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>editable</string>
<string>enabled</string>
<string>formbox_target_id</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>listbox_solver_configuration</string> </value>
......@@ -44,6 +54,18 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>editable</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>enabled</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -52,6 +74,12 @@
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>formbox_target_id</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
......@@ -63,6 +91,14 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>listbox_solver_configuration</string> </value>
......@@ -71,6 +107,10 @@
<key> <string>form_id</string> </key>
<value> <string>erp5_simulation/Delivery_viewSolveDivergenceDialog</string> </value>
</item>
<item>
<key> <string>formbox_target_id</string> </key>
<value> <string>Delivery_viewSolveDivergenceDialog_form_id_should_come_from_TALES</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......@@ -81,4 +121,43 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:cell != request and cell.getSolver()</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:cell != request and cell.getSolver()</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:request.get(\'render_by_gadget\') and cell.getSolverValue().getConfigurationFormId()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<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>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>document</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SolverDecision_render</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -103,7 +103,7 @@ function loopEventListener(target, type, useCapture, callback) {
return jIO.util.ajax(
{
"type": "POST",
"url": basedir + 'Delivery_getSolveDivergenceDialogParameterFormBox?solver=' + event.target.value + "&solver_decision_uid=" + solver_decision_uid,
"url": basedir + 'Delivery_getSolveDivergenceDialogParameterFormBox?solver=' + event.target.value + "&solver_decision_uid=" + solver_decision_uid + "&render_by_gadget=1",
"xhrFields": {
withCredentials: true
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment