vendor/CMF/1.5.2/DCWorkflow

view __init__.py @ 0:e89e53b8c32e

Vendor import of CMF 1.5.2
author fguillaume
date Wed, 20 Jul 2005 16:21:26 +0000
parents
children
line source
1 ##############################################################################
2 #
3 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
4 #
5 # This software is subject to the provisions of the Zope Public License,
6 # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
10 # FOR A PARTICULAR PURPOSE.
11 #
12 ##############################################################################
13 """ Web-configurable workflow.
15 $Id: __init__.py,v 1.6 2004/08/12 15:07:44 jens Exp $
16 """
18 from Products.CMFCore.utils import registerIcon
19 import DCWorkflow, States, Transitions, Variables, Worklists, Scripts
20 import Default
23 def initialize(context):
25 context.registerHelp(directory='help')
26 context.registerHelpTitle('DCWorkflow')
28 registerIcon(DCWorkflow.DCWorkflowDefinition,
29 'images/workflow.gif', globals())
30 registerIcon(States.States,
31 'images/state.gif', globals())
32 States.StateDefinition.icon = States.States.icon
33 registerIcon(Transitions.Transitions,
34 'images/transition.gif', globals())
35 Transitions.TransitionDefinition.icon = Transitions.Transitions.icon
36 registerIcon(Variables.Variables,
37 'images/variable.gif', globals())
38 Variables.VariableDefinition.icon = Variables.Variables.icon
39 registerIcon(Worklists.Worklists,
40 'images/worklist.gif', globals())
41 Worklists.WorklistDefinition.icon = Worklists.Worklists.icon
42 registerIcon(Scripts.Scripts,
43 'images/script.gif', globals())