Back to index

plone3  3.1.7
Scripts.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 """ Scripts in a web-configurable workflow.
00014 
00015 $Id: Scripts.py 37044 2005-06-14 18:08:03Z sidnei $
00016 """
00017 
00018 from OFS.Folder import Folder
00019 from Globals import InitializeClass
00020 from AccessControl import ClassSecurityInfo
00021 
00022 from ContainerTab import ContainerTab
00023 from permissions import ManagePortal
00024 
00025 
00026 class Scripts (ContainerTab):
00027     """A container for workflow scripts"""
00028 
00029     meta_type = 'Workflow Scripts'
00030 
00031     security = ClassSecurityInfo()
00032     security.declareObjectProtected(ManagePortal)
00033 
00034     def manage_main(self, client=None, REQUEST=None, **kw):
00035         '''
00036         '''
00037         kw['management_view'] = 'Scripts'
00038         m = Folder.manage_main.__of__(self)
00039         return m(self, client, REQUEST, **kw)
00040 
00041 InitializeClass(Scripts)