Commit 2a7ec09f authored by Arnaud Fontaine's avatar Arnaud Fontaine

SQUASH

parent 4a925262
......@@ -32,15 +32,14 @@ def dumpWorkflowChain(self, ignore_default=False,
if title == id_:
title = None
chain = None
if cbt is not None and cbt.has_key(id_):
cbt_list = [x for x in cbt[id_] if not(x in ignore_id_set)]
if keep_order:
chain = cbt_list
else:
chain = sorted(cbt_list)
else:
cbt_list = [x for x in t.getTypeWorkflowList() if not(x in ignore_id_set)]
if not cbt_list:
if not(ignore_default):
chain = ['(Default)']
elif keep_order:
chain = cbt_list
else:
chain = sorted(cbt_list)
if chain:
types_info.append({'id': id_,
'title': title,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment