Back to index

plone3  3.1.7
__init__.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
00004 #
00005 # This software is subject to the provisions of the Zope Public License,
00006 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
00007 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
00008 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00009 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
00010 # FOR A PARTICULAR PURPOSE.
00011 #
00012 ##############################################################################
00013 """ Web-configurable workflow.
00014 
00015 $Id: __init__.py 68513 2006-06-07 16:45:25Z yuppie $
00016 """
00017 
00018 from Products.CMFCore.utils import registerIcon
00019 
00020 import DCWorkflow, States, Transitions, Variables, Worklists, Scripts
00021 
00022 
00023 def initialize(context):
00024 
00025     context.registerHelp(directory='help')
00026     context.registerHelpTitle('DCWorkflow')
00027 
00028     registerIcon(DCWorkflow.DCWorkflowDefinition,
00029                  'images/workflow.gif', globals())
00030     registerIcon(States.States,
00031                  'images/state.gif', globals())
00032     States.StateDefinition.icon = States.States.icon
00033     registerIcon(Transitions.Transitions,
00034                  'images/transition.gif', globals())
00035     Transitions.TransitionDefinition.icon = Transitions.Transitions.icon
00036     registerIcon(Variables.Variables,
00037                  'images/variable.gif', globals())
00038     Variables.VariableDefinition.icon = Variables.Variables.icon
00039     registerIcon(Worklists.Worklists,
00040                  'images/worklist.gif', globals())
00041     Worklists.WorklistDefinition.icon = Worklists.Worklists.icon
00042     registerIcon(Scripts.Scripts,
00043                  'images/script.gif', globals())