From c8eefac6805a422a1a1fcae5e993603905476ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Wed, 6 Apr 2011 08:50:01 +0000 Subject: [PATCH] - simplify the condition git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45120 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BusinessTemplate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 32ec980ed6..61ba633d3c 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -2059,9 +2059,8 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem): 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) -- 2.30.9