From a9be44182d7fea6ef8d253ee89c0fd87ef1f6481 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 29 Apr 2011 09:39:55 +0000
Subject: [PATCH] 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
---
 product/ERP5Type/Workflow.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/product/ERP5Type/Workflow.py b/product/ERP5Type/Workflow.py
index 39a23f00d3..40b3b337ba 100644
--- a/product/ERP5Type/Workflow.py
+++ b/product/ERP5Type/Workflow.py
@@ -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)
-- 
2.30.9