From 9834d4e204d0f0bdf348f269cce1de9218e56584 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Thu, 22 Oct 2009 09:39:44 +0000 Subject: [PATCH] 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 --- product/ERP5/Document/BusinessTemplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 31cd6e994a..b05fc4a4e4 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -1901,7 +1901,7 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem): keys = dictio.keys() keys.sort() for key in keys: - allowed_list = dictio[key] + allowed_list = sorted(dictio[key]) xml_data += '\n <portal_type id="%s">' %(key,) for allowed_item in allowed_list: xml_data += '\n <item>%s</item>' %(allowed_item,) -- 2.30.9