diff --git a/organize/work.py b/organize/work.py index 8fc9c2d..362afb3 100644 --- a/organize/work.py +++ b/organize/work.py @@ -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. """