work in progress: editing rules for work items

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3156 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2009-01-18 11:18:43 +00:00
parent 51fd16c8de
commit 00631e9a74

View file

@ -55,7 +55,7 @@ def workItemStates():
color='orange'),
State('done', 'done',
('plan', 'accept', 'start', 'work', 'finish', 'cancel', 'modify'),
color='orange'),
color='lightgreen'),
State('finished', 'finished',
('plan', 'accept', 'start', 'work', 'finish', 'modify', 'close'),
color='green'),
@ -76,6 +76,31 @@ def workItemStates():
initialState='new')
fieldNames = ['title', 'description', 'start', 'end', 'duration', 'effort',
'comment', 'party']
# meaning: - not editable, value=default
# / not editable, value=None
# + copy
# . default (may be empty)
editingRules = dict(
plan = {'*': '++.....+'},
accept = {'*': '++.....-',
'planned': '++++++.-',
'accepted': '++++++.-'},
start = {'*': '++./...-'},
work = {'*': '++.....-',
'running': '+++....-'},
finish = {'*': '++.....-',
'running': '+++....-'},
cancel = {'*': '++////./'},
modify = {'*': '++++++++'},
delegate= {'*': '++......'},
close = {'*': '++////./'},
)
class WorkItem(Stateful, Track):
""" A work item that may be stored as a track in a tracking storage.
"""