Commit 2c9db0a2 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

the order is reversed for ListField items.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30440 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e91a7fb3
...@@ -100,7 +100,7 @@ class SolverTool(BaseTool): ...@@ -100,7 +100,7 @@ class SolverTool(BaseTool):
def getDeliverySolverTranslatedItemList(self, class_name_list=None): def getDeliverySolverTranslatedItemList(self, class_name_list=None):
""" """
""" """
return [(x, self.getDeliverySolverTranslatedTitle(x)) \ return [(self.getDeliverySolverTranslatedTitle(x), x) \
for x in self.getDeliverySolverClassNameList() \ for x in self.getDeliverySolverClassNameList() \
if class_name_list is None or x in class_name_list] if class_name_list is None or x in class_name_list]
......
...@@ -60,7 +60,7 @@ class IDeliverySolverFactory(Interface): ...@@ -60,7 +60,7 @@ class IDeliverySolverFactory(Interface):
def getDeliverySolverTranslatedItemList(class_name_list=None): def getDeliverySolverTranslatedItemList(class_name_list=None):
""" """
Return the list of class names and translated titles of available Return the list of translated titles and class names of available
delivery solvers. Use this method to fill listfields in user interface delivery solvers. Use this method to fill listfields in user interface
forms. forms.
......
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