Commit 3bcb4bc4 authored by Jérome Perrin's avatar Jérome Perrin

Sort list of business templates from repositories.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5657 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 15926af4
...@@ -484,7 +484,7 @@ class TemplateTool (BaseTool): ...@@ -484,7 +484,7 @@ class TemplateTool (BaseTool):
repository = repository, **property_dict) repository = repository, **property_dict)
obj.setUid(uid) obj.setUid(uid)
template_list.append(obj) template_list.append(obj)
template_list.sort(lambda x,y:cmp(x.getTitle(), y.getTitle()))
return template_list return template_list
security.declareProtected( Permissions.AccessContentsInformation, 'getUpdatedRepositoryBusinessTemplateList' ) security.declareProtected( Permissions.AccessContentsInformation, 'getUpdatedRepositoryBusinessTemplateList' )
......
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