Commit 9834d4e2 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

sort allowed portal type list etc. in PortalTypeAllowedContentTypeTemplateItem...

sort allowed portal type list etc. in PortalTypeAllowedContentTypeTemplateItem to get always the same result.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29913 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 91c3ae9a
...@@ -1901,7 +1901,7 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem): ...@@ -1901,7 +1901,7 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
keys = dictio.keys() keys = dictio.keys()
keys.sort() keys.sort()
for key in keys: for key in keys:
allowed_list = dictio[key] allowed_list = sorted(dictio[key])
xml_data += '\n <portal_type id="%s">' %(key,) xml_data += '\n <portal_type id="%s">' %(key,)
for allowed_item in allowed_list: for allowed_item in allowed_list:
xml_data += '\n <item>%s</item>' %(allowed_item,) xml_data += '\n <item>%s</item>' %(allowed_item,)
......
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