[CMF-checkins] CVS: CMF/DCWorkflow - DCWorkflow.py:1.25
Yvo Schubbe
cvs-admin at zope.org
Sat Nov 29 08:05:48 EST 2003
Update of /cvs-repository/CMF/DCWorkflow
In directory cvs.zope.org:/tmp/cvs-serv5610/DCWorkflow
Modified Files:
DCWorkflow.py
Log Message:
- don't import Persistent or PersistentMapping from ZODB
- other import cleanup
=== CMF/DCWorkflow/DCWorkflow.py 1.24 => 1.25 ===
--- CMF/DCWorkflow/DCWorkflow.py:1.24 Wed Mar 26 11:51:49 2003
+++ CMF/DCWorkflow/DCWorkflow.py Sat Nov 29 08:05:48 2003
@@ -1,35 +1,29 @@
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
""" Web-configurable workflow.
$Id$
"""
-# Python library
-from string import join
-
# Zope
-from ZODB import Persistent
-from AccessControl import getSecurityManager, ClassSecurityInfo
-from OFS.Folder import Folder
-from OFS.ObjectManager import bad_id
-from OFS.Traversable import Traversable
-from Globals import DTMLFile, PersistentMapping
-import Acquisition
+from AccessControl import ClassSecurityInfo
+from AccessControl import getSecurityManager
from Acquisition import aq_inner, aq_parent
-import Globals
-import App
+from App.Undo import UndoSupport
from DocumentTemplate.DT_Util import TemplateDict
+from Globals import InitializeClass
+from OFS.Folder import Folder
+from OFS.ObjectManager import bad_id
# CMFCore
from Products.CMFCore.WorkflowCore import WorkflowException, \
@@ -83,7 +77,7 @@
{'label': 'Worklists', 'action': 'worklists/manage_main'},
{'label': 'Scripts', 'action': 'scripts/manage_main'},
{'label': 'Permissions', 'action': 'manage_permissions'},
- ) + App.Undo.UndoSupport.manage_options
+ ) + UndoSupport.manage_options
security = ClassSecurityInfo()
security.declareObjectProtected(ManagePortal)
@@ -549,8 +543,8 @@
else:
return new_sdef
+InitializeClass(DCWorkflowDefinition)
-Globals.InitializeClass(DCWorkflowDefinition)
addWorkflowFactory(DCWorkflowDefinition, id='dc_workflow',
title='Web-configurable workflow')
More information about the CMF-checkins
mailing list