Commit d6f84528 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

implement SolverTool.newDeliverySolver().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31310 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 63d2623d
...@@ -88,7 +88,9 @@ class SolverTool(BaseTool): ...@@ -88,7 +88,9 @@ class SolverTool(BaseTool):
def newDeliverySolver(self, class_name, movement_list): def newDeliverySolver(self, class_name, movement_list):
""" """
""" """
raise NotImplementedError __import__('%s.%s' % (DeliverySolver.__name__, class_name))
solver_class = getattr(getattr(DeliverySolver, class_name), class_name)
return solver_class(movement_list)
def getDeliverySolverClassNameList(self): def getDeliverySolverClassNameList(self):
""" """
......
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