add some (still commented-out) code as marker for future extension, e.g. for allowing delegation of running work items
This commit is contained in:
parent
81d17e8966
commit
c5087b764b
1 changed files with 4 additions and 1 deletions
|
@ -52,7 +52,7 @@ def workItemStates():
|
||||||
'move', 'cancel', 'modify'),
|
'move', 'cancel', 'modify'),
|
||||||
color='yellow'),
|
color='yellow'),
|
||||||
State('running', 'running',
|
State('running', 'running',
|
||||||
('work', 'finish', 'move', 'cancel', 'modify'),
|
('work', 'finish', 'move', 'cancel', 'modify'), # 'delegate', # ?
|
||||||
color='orange'),
|
color='orange'),
|
||||||
State('done', 'done',
|
State('done', 'done',
|
||||||
('plan', 'accept', 'start', 'work', 'finish', 'delegate',
|
('plan', 'accept', 'start', 'work', 'finish', 'delegate',
|
||||||
|
@ -279,6 +279,9 @@ class WorkItem(Stateful, Track):
|
||||||
if self.state in ('planned', 'accepted', 'delegated', 'moved', 'done'):
|
if self.state in ('planned', 'accepted', 'delegated', 'moved', 'done'):
|
||||||
self.state = self.state + '_x'
|
self.state = self.state + '_x'
|
||||||
self.reindex('state')
|
self.reindex('state')
|
||||||
|
#elif self.state == 'running':
|
||||||
|
# self.doAction('work', userName,
|
||||||
|
# end=(kw.get('end') or getTimeStamp()))
|
||||||
xkw = dict(kw)
|
xkw = dict(kw)
|
||||||
xkw.pop('party', None)
|
xkw.pop('party', None)
|
||||||
delegated = self.createNew('delegate', userName, **xkw)
|
delegated = self.createNew('delegate', userName, **xkw)
|
||||||
|
|
Loading…
Add table
Reference in a new issue