Commit dd91a38e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add temp_object argument in SolverTool.newSolverProcess() and...

add temp_object argument in SolverTool.newSolverProcess() and SolverProcess.buildSolverDecisionList() so as to prepare solve divergence dialog.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31756 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3adda0f2
...@@ -153,7 +153,8 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -153,7 +153,8 @@ class SolverProcess(XMLObject, ActiveProcess):
this helps reducing CPU time. this helps reducing CPU time.
""" """
def buildSolverDecisionList(self, delivery_or_movement=None): def buildSolverDecisionList(self, delivery_or_movement=None,
temp_object=False):
""" """
Build (or rebuild) the solver decisions in the solver process Build (or rebuild) the solver decisions in the solver process
...@@ -194,7 +195,8 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -194,7 +195,8 @@ class SolverProcess(XMLObject, ActiveProcess):
# grouping # grouping
# XXX-JPS: pseudocode for update (ie. rebuild) is not present # XXX-JPS: pseudocode for update (ie. rebuild) is not present
for solver_decision_key, movement_dict in solver_decision_dict.items(): for solver_decision_key, movement_dict in solver_decision_dict.items():
new_decision = self.newContent(portal_type='Solver Decision') new_decision = self.newContent(portal_type='Solver Decision',
temp_object=temp_object)
new_decision._setDeliveryList(solver_decision_key[1]) new_decision._setDeliveryList(solver_decision_key[1])
new_decision._setCausality(solver_decision_key[0]) new_decision._setCausality(solver_decision_key[0])
for simulation_movement in movement_dict.keys(): for simulation_movement in movement_dict.keys():
......
...@@ -137,7 +137,7 @@ class SolverTool(BaseTool): ...@@ -137,7 +137,7 @@ class SolverTool(BaseTool):
return True return True
return False return False
def newSolverProcess(self, delivery_or_movement=None): def newSolverProcess(self, delivery_or_movement=None, temp_object=False):
""" """
Builds a new solver process from the divergence Builds a new solver process from the divergence
analaysis of delivery_or_movement. All movements analaysis of delivery_or_movement. All movements
...@@ -152,7 +152,8 @@ class SolverTool(BaseTool): ...@@ -152,7 +152,8 @@ class SolverTool(BaseTool):
return None return None
# Create an empty solver process # Create an empty solver process
new_solver = self.newContent(portal_type='Solver Process') new_solver = self.newContent(portal_type='Solver Process',
temp_object=temp_object)
# And build decisions # And build decisions
new_solver.buildSolverDecisionList(delivery_or_movement=delivery_or_movement) new_solver.buildSolverDecisionList(delivery_or_movement=delivery_or_movement)
return new_solver return new_solver
......
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