vendor/CMF/1.6.1/DCWorkflow

view Scripts.py @ 0:238bab7e7116

CMF 1.6.1 vendor import
author fguillaume
date Tue, 13 Jun 2006 14:57:59 +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 """ Scripts in a web-configurable workflow.
15 $Id: Scripts.py 37045 2005-06-14 18:09:32Z sidnei $
16 """
18 from OFS.Folder import Folder
19 from Globals import InitializeClass
20 from AccessControl import ClassSecurityInfo
22 from ContainerTab import ContainerTab
23 from permissions import ManagePortal
26 class Scripts (ContainerTab):
27 """A container for workflow scripts"""
29 meta_type = 'Workflow Scripts'
31 security = ClassSecurityInfo()
32 security.declareObjectProtected(ManagePortal)
34 def manage_main(self, client=None, REQUEST=None, **kw):
35 '''
36 '''
37 kw['management_view'] = 'Scripts'
38 m = Folder.manage_main.__of__(self)
39 return m(self, client, REQUEST, **kw)
41 InitializeClass(Scripts)