Commit a3d47551 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

sort getDeliverySolverTranslatedItemList() output by translated title.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30443 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 147c1fd2
...@@ -100,9 +100,10 @@ class SolverTool(BaseTool): ...@@ -100,9 +100,10 @@ class SolverTool(BaseTool):
def getDeliverySolverTranslatedItemList(self, class_name_list=None): def getDeliverySolverTranslatedItemList(self, class_name_list=None):
""" """
""" """
return [(self.getDeliverySolverTranslatedTitle(x), x) \ return sorted([(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],
key=lambda x:str(x[0]))
def getDeliverySolverTranslatedTitle(self, class_name): def getDeliverySolverTranslatedTitle(self, class_name):
""" """
......
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