Commit 7a4648b0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

configure activity dependencies for automatic solving.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36768 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97be7054
...@@ -59,9 +59,11 @@ solver_process_tool = delivery.getPortalObject().portal_solver_processes\n ...@@ -59,9 +59,11 @@ solver_process_tool = delivery.getPortalObject().portal_solver_processes\n
solver_process = solver_process_tool.newSolverProcess(delivery, temp_object=True)\n solver_process = solver_process_tool.newSolverProcess(delivery, temp_object=True)\n
if solver_process is not None:\n if solver_process is not None:\n
solver_process.buildTargetSolverList()\n solver_process.buildTargetSolverList()\n
solver_process.solve()\n solver_tag = \'%s_solve\' % delivery.getPath()\n
# XXX It can be required to wait indexing.\n solver_process.solve(activate_kw={\'tag\':solver_tag})\n
delivery.updateCausalityState(solve_automatically=False)\n delivery.activate(after_tag=solver_tag).updateCausalityState(solve_automatically=False)\n
else:\n
delivery.updateCausalityState(solve_automatically=False)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -111,8 +113,9 @@ delivery.updateCausalityState(solve_automatically=False)\n ...@@ -111,8 +113,9 @@ delivery.updateCausalityState(solve_automatically=False)\n
<string>_getattr_</string> <string>_getattr_</string>
<string>solver_process_tool</string> <string>solver_process_tool</string>
<string>True</string> <string>True</string>
<string>None</string>
<string>solver_process</string> <string>solver_process</string>
<string>None</string>
<string>solver_tag</string>
<string>False</string> <string>False</string>
</tuple> </tuple>
</value> </value>
......
...@@ -63,8 +63,8 @@ if solver_tool is None or solver_process_tool is None:\n ...@@ -63,8 +63,8 @@ if solver_tool is None or solver_process_tool is None:\n
delivery.diverge()\n delivery.diverge()\n
return\n return\n
else:\n else:\n
activate_kw = state_change[\'kwargs\'].get(\'activate_kw\') or {}\n solver_tag = \'%s_solve\' % delivery.getPath()\n
delivery.activate(**activate_kw).Delivery_solveDivergenceAutomatically()\n delivery.activate(tag=solver_tag).Delivery_solveDivergenceAutomatically()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -116,8 +116,7 @@ else:\n ...@@ -116,8 +116,7 @@ else:\n
<string>None</string> <string>None</string>
<string>solver_tool</string> <string>solver_tool</string>
<string>solver_process_tool</string> <string>solver_process_tool</string>
<string>activate_kw</string> <string>solver_tag</string>
<string>_apply_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
787 788
\ No newline at end of file \ No newline at end of file
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