Commit a47d4473 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Remove an useless import. Fix spacing. explain should get a delivery value only once.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18588 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 629c16d0
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type.ObjectMessage import ObjectMessage from Products.ERP5Type.ObjectMessage import ObjectMessage
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface from Products.ERP5Type import Permissions, PropertySheet, Interface
from Products.ERP5.Document.PropertyDivergenceTester import \ from Products.ERP5.Document.PropertyDivergenceTester import \
PropertyDivergenceTester PropertyDivergenceTester
...@@ -73,11 +73,11 @@ class CategoryDivergenceTester(PropertyDivergenceTester): ...@@ -73,11 +73,11 @@ class CategoryDivergenceTester(PropertyDivergenceTester):
solver_script_list = self.getSolverScriptList() solver_script_list = self.getSolverScriptList()
if solver_script_list is None: if solver_script_list is None:
solver_script_list = [] solver_script_list = []
solver_script_list=self._splitStringList(solver_script_list) solver_script_list = self._splitStringList(solver_script_list)
delivery_mvt = simulation_movement.getDeliveryValue()
for tested_property_id, tested_property_title in \ for tested_property_id, tested_property_title in \
self._splitStringList(tested_property): self._splitStringList(tested_property):
delivery_mvt = simulation_movement.getDeliveryValue()
message = None message = None
delivery_mvt_category_list = \ delivery_mvt_category_list = \
delivery_mvt.getPropertyList(tested_property_id) delivery_mvt.getPropertyList(tested_property_id)
...@@ -111,10 +111,10 @@ class CategoryDivergenceTester(PropertyDivergenceTester): ...@@ -111,10 +111,10 @@ class CategoryDivergenceTester(PropertyDivergenceTester):
simulation_mvt_property = ' , '.join(simulation_category_title_list) simulation_mvt_property = ' , '.join(simulation_category_title_list)
message = ObjectMessage( message = ObjectMessage(
object_relative_url= delivery_mvt.getRelativeUrl(), object_relative_url=delivery_mvt.getRelativeUrl(),
simulation_movement = simulation_movement, simulation_movement=simulation_movement,
decision_value = delivery_mvt_property , decision_value=delivery_mvt_property ,
prevision_value = simulation_mvt_property, prevision_value=simulation_mvt_property,
tested_property=tested_property_id, tested_property=tested_property_id,
message=tested_property_title, message=tested_property_title,
solver_script_list=solver_script_list solver_script_list=solver_script_list
......
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