Commit 6445d889 authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

WorkflowTool: define a __repr__ on ExclusionList

These are printed like a normal list, so it's a bit hard to figure out
if they are supposed to be excluded when debugging
parent e95e1674
......@@ -662,23 +662,31 @@ WorkflowTool.security.declarePrivate('getWorkflowById')
InitializeClass(WorkflowTool)
class ExclusionList(list):
class ExclusionSequence(object):
def __repr__(self):
return '<%s %s>' % (
self.__class__.__name__,
super(ExclusionSequence, self).__repr__())
class ExclusionList(ExclusionSequence, list):
"""
This is a dummy subclass of list.
It is only used to detect wether contained values must be negated.
It is not to be used outside of the scope of this document nor outside
of the scope of worklist criterion handling.
"""
pass
class ExclusionTuple(tuple):
class ExclusionTuple(ExclusionSequence, tuple):
"""
This is a dummy subclass of tuple.
It is only used to detect wether contained values must be negated.
It is not to be used outside of the scope of this document nor outside
of the scope of worklist criterion handling.
"""
pass
def getValidCriterionDict(worklist_match_dict, sql_catalog,
workflow_worklist_key):
......
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