[Erp5-report] r29782 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 19 11:16:54 CEST 2009
Author: kazuhiko
Date: Mon Oct 19 11:16:49 2009
New Revision: 29782
URL: http://svn.erp5.org?rev=29782&view=rev
Log:
sort workflow list in PortalTypeWorkflowChainTemplateItem 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=29782&r1=29781&r2=29782&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Mon Oct 19 11:16:49 2009
@@ -1690,7 +1690,7 @@
workflow_list = [workflow_list]
xml_data += '\n <chain>'
xml_data += '\n <type>%s</type>' %(key,)
- xml_data += '\n <workflow>%s</workflow>' %(', '.join(workflow_list))
+ xml_data += '\n <workflow>%s</workflow>' %(', '.join(sorted(workflow_list)))
xml_data += '\n </chain>'
xml_data += '\n</workflow_chain>'
return xml_data
More information about the Erp5-report
mailing list