Commit 0d4575d5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use validation_state instead of solver_state.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33580 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 37f15f04
...@@ -60,7 +60,7 @@ solver_process = None\n ...@@ -60,7 +60,7 @@ solver_process = None\n
solver_list = context.getSolverValueList()\n solver_list = context.getSolverValueList()\n
for i in solver_list:\n for i in solver_list:\n
# XXX if \'solving\' decision exists, what should we do?\n # XXX if \'solving\' decision exists, what should we do?\n
if i.getSolverState() != \'solved\':\n if i.getValidationState() != \'solved\':\n
solver_process = i\n solver_process = i\n
break\n break\n
\n \n
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</item> </item>
<item> <item>
<key> <string>state_var</string> </key> <key> <string>state_var</string> </key>
<value> <string>solver_state</string> </value> <value> <string>validation_state</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</item> </item>
<item> <item>
<key> <string>state_var</string> </key> <key> <string>state_var</string> </key>
<value> <string>solver_state</string> </value> <value> <string>validation_state</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>solver_process = state_change[\'object\'].getParentValue()\n <value> <string>solver_process = state_change[\'object\'].getParentValue()\n
if solver_process.getSolverState() == \'draft\':\n if solver_process.getValidationState() == \'draft\':\n
solver_process.startSolving()\n solver_process.startSolving()\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<value> <string>solver_process = state_change[\'object\'].getParentValue()\n <value> <string>solver_process = state_change[\'object\'].getParentValue()\n
for solver in solver_process.objectValues(\n for solver in solver_process.objectValues(\n
portal_type=solver_process.getPortalObject().getPortalTargetSolverTypeList()):\n portal_type=solver_process.getPortalObject().getPortalTargetSolverTypeList()):\n
if solver.getSolverState() != \'solved\':\n if solver.getValidationState() != \'solved\':\n
return\n return\n
solver_process.succeed()\n solver_process.succeed()\n
</string> </value> </string> </value>
......
...@@ -452,7 +452,7 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase): ...@@ -452,7 +452,7 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase):
solver_process = sequence.get('solver_process') solver_process = sequence.get('solver_process')
for solver in solver_process.objectValues( for solver in solver_process.objectValues(
portal_type=self.portal.getPortalTargetSolverTypeList()): portal_type=self.portal.getPortalTargetSolverTypeList()):
self.assertEquals(state, solver.getSolverState()) self.assertEquals(state, solver.getValidationState())
def stepCheckSolverIsSolving(self, sequence=None, sequence_list=None, **kw): def stepCheckSolverIsSolving(self, sequence=None, sequence_list=None, **kw):
""" """
......
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