[Erp5-report] r29913 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 22 11:39:49 CEST 2009


Author: kazuhiko
Date: Thu Oct 22 11:39:44 2009
New Revision: 29913

URL: http://svn.erp5.org?rev=29913&view=rev
Log:
sort allowed portal type list etc. in PortalTypeAllowedContentTypeTemplateItem to get always the same result.

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=29913&r1=29912&r2=29913&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Thu Oct 22 11:39:44 2009
@@ -1901,7 +1901,7 @@
     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,)




More information about the Erp5-report mailing list