Commit 901c6686 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

invoke recordProperty for all properties of the divergence.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33495 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96bd5639
...@@ -85,13 +85,13 @@ class AcceptSolver(SolverMixin, ConfigurableMixin, XMLObject): ...@@ -85,13 +85,13 @@ class AcceptSolver(SolverMixin, ConfigurableMixin, XMLObject):
else: else:
value_dict.update({solved_property:new_value}) value_dict.update({solved_property:new_value})
self._solveRecursively(simulation_movement, value_dict, self._solveRecursively(simulation_movement, value_dict,
solved_property) solved_property_list)
simulation_movement.expand() simulation_movement.expand()
# Finish solving # Finish solving
self.succeed() self.succeed()
def _solveRecursively(self, simulation_movement, value_dict=None, def _solveRecursively(self, simulation_movement, value_dict=None,
property_id=None): property_id_list=None):
""" """
Update value of the current simulation movement, and update Update value of the current simulation movement, and update
his parent movement. his parent movement.
...@@ -102,8 +102,9 @@ class AcceptSolver(SolverMixin, ConfigurableMixin, XMLObject): ...@@ -102,8 +102,9 @@ class AcceptSolver(SolverMixin, ConfigurableMixin, XMLObject):
not parent_movement.isFrozen(): not parent_movement.isFrozen():
# backtrack to the parent movement while it is not frozen # backtrack to the parent movement while it is not frozen
self._solveRecursively(parent_movement, value_dict=value_dict, self._solveRecursively(parent_movement, value_dict=value_dict,
property_id=property_id) property_id_list=property_id_list)
else: else:
if not simulation_movement.isPropertyRecorded(property_id): for property_id in property_id_list:
simulation_movement.recordProperty(property_id) if not simulation_movement.isPropertyRecorded(property_id):
simulation_movement.recordProperty(property_id)
simulation_movement.edit(**value_dict) simulation_movement.edit(**value_dict)
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