[Erp5-report] r45120 luke - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Apr 6 10:50:02 CEST 2011
Author: luke
Date: Wed Apr 6 10:50:01 2011
New Revision: 45120
URL: http://svn.erp5.org?rev=45120&view=rev
Log:
- simplify the condition
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=45120&r1=45119&r2=45120&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Wed Apr 6 10:50:01 2011
@@ -2059,9 +2059,8 @@ class PortalTypeWorkflowChainTemplateIte
old_chain_workflow_id_set = set()
old_chain_workflow_id_set.add(wf_id[1:])
# then either '+' or nothing, add wf id to the list
- elif wf_id[0] == '+':
- old_chain_workflow_id_set.add(wf_id[1:])
else:
+ wf_id.lstrip('+')
old_chain_workflow_id_set.add(wf_id)
# create the new chain
chain_dict[chain_key] = list(old_chain_workflow_id_set)
More information about the Erp5-report
mailing list