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
solver_process = solver_process_tool.newSolverProcess(delivery, temp_object=True)\n
if solver_process is not None:\n
solver_process.buildTargetSolverList()\n
solver_process.solve()\n
# XXX It can be required to wait indexing.\n
delivery.updateCausalityState(solve_automatically=False)\n
solver_tag = \'%s_solve\' % delivery.getPath()\n
solver_process.solve(activate_kw={\'tag\':solver_tag})\n
delivery.activate(after_tag=solver_tag).updateCausalityState(solve_automatically=False)\n
else:\n
delivery.updateCausalityState(solve_automatically=False)\n
</string> </value>
</item>
<item>
......@@ -111,8 +113,9 @@ delivery.updateCausalityState(solve_automatically=False)\n
<string>_getattr_</string>
<string>solver_process_tool</string>
<string>True</string>
<string>None</string>
<string>solver_process</string>
<string>None</string>
<string>solver_tag</string>
<string>False</string>
</tuple>
</value>
......
......@@ -63,8 +63,8 @@ if solver_tool is None or solver_process_tool is None:\n
delivery.diverge()\n
return\n
else:\n
activate_kw = state_change[\'kwargs\'].get(\'activate_kw\') or {}\n
delivery.activate(**activate_kw).Delivery_solveDivergenceAutomatically()\n
solver_tag = \'%s_solve\' % delivery.getPath()\n
delivery.activate(tag=solver_tag).Delivery_solveDivergenceAutomatically()\n
</string> </value>
</item>
<item>
......@@ -116,8 +116,7 @@ else:\n
<string>None</string>
<string>solver_tool</string>
<string>solver_process_tool</string>
<string>activate_kw</string>
<string>_apply_</string>
<string>solver_tag</string>
</tuple>
</value>
</item>
......
787
\ No newline at end of file
788
\ 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