Commit a9be4418 authored by Jérome Perrin's avatar Jérome Perrin

set a title on draft state and a better title for workflow


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45751 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a9486dad
......@@ -142,9 +142,10 @@ def registerAllWorkflowFactories(context):
def setupERP5Workflow(wf):
"""Sets up an DC Workflow with defaults variables needed by ERP5.
"""
wf.setProperties(title='ERP5 default workflow')
for s in ('draft',):
wf.states.addState(s)
wf.setProperties(title='ERP5 Default Workflow')
for state_id, state_title in (('draft', 'Draft'),):
wf.states.addState(state_id)
wf.states[state_id].title = state_title
for v in ('action', 'actor', 'comment', 'history', 'time',
'error_message', 'portal_type'):
wf.variables.addVariable(v)
......
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