Commit 27db77a6 authored by Jérome Perrin's avatar Jérome Perrin

use type tool's interface


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35140 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 080409fb
...@@ -64,7 +64,7 @@ class AcceptSolver(SolverMixin, ConfigurableMixin, XMLObject): ...@@ -64,7 +64,7 @@ class AcceptSolver(SolverMixin, ConfigurableMixin, XMLObject):
original one recorded. original one recorded.
""" """
configuration_dict = self.getConfigurationPropertyDict() configuration_dict = self.getConfigurationPropertyDict()
portal_type = self.getPortalObject().portal_types[self.getPortalType()] portal_type = self.getPortalObject().portal_types.getTypeInfo(self)
solved_property_list = configuration_dict.get('tested_property_list', solved_property_list = configuration_dict.get('tested_property_list',
portal_type.getTestedPropertyList()) portal_type.getTestedPropertyList())
for movement in self.getDeliveryValueList(): for movement in self.getDeliveryValueList():
......
...@@ -65,7 +65,7 @@ class AdoptSolver(SolverMixin, ConfigurableMixin, XMLObject): ...@@ -65,7 +65,7 @@ class AdoptSolver(SolverMixin, ConfigurableMixin, XMLObject):
Adopt new property to movements or deliveries. Adopt new property to movements or deliveries.
""" """
configuration_dict = self.getConfigurationPropertyDict() configuration_dict = self.getConfigurationPropertyDict()
portal_type = self.getPortalObject().portal_types[self.getPortalType()] portal_type = self.getPortalObject().portal_types.getTypeInfo(self)
solved_property_list = configuration_dict.get('tested_property_list', solved_property_list = configuration_dict.get('tested_property_list',
portal_type.getTestedPropertyList()) portal_type.getTestedPropertyList())
for movement in self.getDeliveryValueList(): for movement in self.getDeliveryValueList():
......
...@@ -61,7 +61,7 @@ class TradeModelSolver(AcceptSolver): ...@@ -61,7 +61,7 @@ class TradeModelSolver(AcceptSolver):
one recorded, and then update Trade Model related lines accordingly. one recorded, and then update Trade Model related lines accordingly.
""" """
configuration_dict = self.getConfigurationPropertyDict() configuration_dict = self.getConfigurationPropertyDict()
portal_type = self.getPortalObject().portal_types[self.getPortalType()] portal_type = self.getPortalObject().portal_types.getTypeInfo(self)
solved_property_list = configuration_dict.get('tested_property_list', solved_property_list = configuration_dict.get('tested_property_list',
portal_type.getTestedPropertyList()) portal_type.getTestedPropertyList())
......
...@@ -62,7 +62,7 @@ class UnifySolver(AcceptSolver): ...@@ -62,7 +62,7 @@ class UnifySolver(AcceptSolver):
original one recorded. original one recorded.
""" """
configuration_dict = self.getConfigurationPropertyDict() configuration_dict = self.getConfigurationPropertyDict()
portal_type = self.getPortalObject().portal_types[self.getPortalType()] portal_type = self.getPortalObject().portal_types.getTypeInfo(self)
solved_property_list = configuration_dict.get('tested_property_list', solved_property_list = configuration_dict.get('tested_property_list',
portal_type.getTestedPropertyList()) portal_type.getTestedPropertyList())
# XXX it does not support multiple tested properties. # XXX it does not support multiple tested properties.
......
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