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

SQUASH

parent 4a925262
...@@ -32,15 +32,14 @@ def dumpWorkflowChain(self, ignore_default=False, ...@@ -32,15 +32,14 @@ def dumpWorkflowChain(self, ignore_default=False,
if title == id_: if title == id_:
title = None title = None
chain = None chain = None
if cbt is not None and cbt.has_key(id_): cbt_list = [x for x in t.getTypeWorkflowList() if not(x in ignore_id_set)]
cbt_list = [x for x in cbt[id_] if not(x in ignore_id_set)] if not cbt_list:
if keep_order: if not(ignore_default):
chain = ['(Default)']
elif keep_order:
chain = cbt_list chain = cbt_list
else: else:
chain = sorted(cbt_list) chain = sorted(cbt_list)
else:
if not(ignore_default):
chain = ['(Default)']
if chain: if chain:
types_info.append({'id': id_, types_info.append({'id': id_,
'title': title, '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