Commit f24c2345 authored by 's avatar

- import cleanup

parent edf55c6b
......@@ -15,27 +15,23 @@
$Id$
"""
# Zope
from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.unauthorized import Unauthorized
from Acquisition import aq_inner
from Acquisition import aq_parent
from App.class_init import default__class_init__ as InitializeClass
from App.class_init import InitializeClass
from DocumentTemplate.DT_Util import TemplateDict
from OFS.Folder import Folder
from OFS.ObjectManager import bad_id
from zope.event import notify
from zope.interface import implements
# CMFCore
from Products.CMFCore.interfaces import IWorkflowDefinition
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.WorkflowCore import ObjectDeleted
from Products.CMFCore.WorkflowCore import ObjectMoved
from Products.CMFCore.WorkflowCore import WorkflowException
# DCWorkflow
from Products.DCWorkflow.events import AfterTransitionEvent
from Products.DCWorkflow.events import BeforeTransitionEvent
from Products.DCWorkflow.Expression import createExprContext
......
......@@ -14,21 +14,21 @@
$Id$
"""
from warnings import warn
from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager
from Acquisition import aq_inner
from Acquisition import aq_parent
from App.class_init import default__class_init__ as InitializeClass
from App.class_init import InitializeClass
from DateTime.DateTime import DateTime
from Persistence import Persistent
from Products.PageTemplates.Expressions import getEngine
from Products.PageTemplates.Expressions import SecureModuleImporter
from Products.CMFCore.WorkflowCore import ObjectDeleted, ObjectMoved
from Products.CMFCore.Expression import Expression
from Products.CMFCore.Expression import Expression # BBB: old location
from Products.CMFCore.interfaces import ISiteRoot
from Products.PageTemplates.Expressions import getEngine
from Products.PageTemplates.Expressions import SecureModuleImporter
# We don't import SafeMapping from Products.PageTemplates.TALES
......
......@@ -20,13 +20,12 @@ from cgi import escape
from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Explicit
from Acquisition import aq_base
from App.class_init import default__class_init__ as InitializeClass
from App.class_init import InitializeClass
from App.special_dtml import DTMLFile
from Persistence import Persistent
from Products.CMFCore.Expression import Expression
from Products.CMFCore.utils import _checkPermission
from Products.DCWorkflow.Expression import Expression
from Products.DCWorkflow.Expression import StateChangeInfo
from Products.DCWorkflow.Expression import createExprContext
from Products.DCWorkflow.permissions import ManagePortal
......
......@@ -16,7 +16,7 @@ $Id$
"""
from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass
from App.class_init import InitializeClass
from OFS.Folder import Folder
from Products.DCWorkflow.ContainerTab import ContainerTab
......
......@@ -19,7 +19,7 @@ from AccessControl.requestmethod import postonly
from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import aq_inner
from Acquisition import aq_parent
from App.class_init import default__class_init__ as InitializeClass
from App.class_init import InitializeClass
from App.special_dtml import DTMLFile
from Persistence import PersistentMapping
from OFS.SimpleItem import SimpleItem
......
......@@ -18,16 +18,16 @@ $Id$
from AccessControl import ClassSecurityInfo
from Acquisition import aq_inner
from Acquisition import aq_parent
from App.class_init import default__class_init__ as InitializeClass
from App.class_init import InitializeClass
from App.special_dtml import DTMLFile
from OFS.SimpleItem import SimpleItem
from Persistence import PersistentMapping
from Products.CMFCore.Expression import Expression
from Products.DCWorkflow.ContainerTab import ContainerTab
from Products.DCWorkflow.Guard import Guard
from Products.DCWorkflow.permissions import ManagePortal
from Products.DCWorkflow.utils import _dtmldir
from Products.DCWorkflow.Expression import Expression
TRIGGER_AUTOMATIC = 0
TRIGGER_USER_ACTION = 1
......
......@@ -18,12 +18,12 @@ $Id$
from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import aq_inner
from Acquisition import aq_parent
from App.class_init import default__class_init__ as InitializeClass
from App.class_init import InitializeClass
from App.special_dtml import DTMLFile
from OFS.SimpleItem import SimpleItem
from Products.CMFCore.Expression import Expression
from Products.DCWorkflow.ContainerTab import ContainerTab
from Products.DCWorkflow.Expression import Expression
from Products.DCWorkflow.Guard import Guard
from Products.DCWorkflow.permissions import ManagePortal
from Products.DCWorkflow.utils import _dtmldir
......
......@@ -19,10 +19,9 @@ import os
from AccessControl.requestmethod import postonly
from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass
from App.special_dtml import DTMLFile
from Acquisition import aq_get
from App.class_init import InitializeClass
from App.special_dtml import DTMLFile
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
from Products.DCWorkflow.permissions import ManagePortal
......
......@@ -18,10 +18,10 @@ $Id$
from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import aq_inner
from Acquisition import aq_parent
from App.class_init import default__class_init__ as InitializeClass
from App.class_init import InitializeClass
from App.special_dtml import DTMLFile
from Persistence import PersistentMapping
from OFS.SimpleItem import SimpleItem
from Persistence import PersistentMapping
from Products.DCWorkflow.ContainerTab import ContainerTab
from Products.DCWorkflow.Guard import Guard
......
......@@ -20,19 +20,18 @@ from xml.dom.minidom import parseString
from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass
from App.class_init import InitializeClass
from Persistence import PersistentMapping
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
from zope.component import adapts
from Products.GenericSetup.interfaces import ISetupEnviron
from Products.GenericSetup.utils import BodyAdapterBase
from Products.CMFCore.Expression import Expression
from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition
from Products.DCWorkflow.Expression import Expression
from Products.DCWorkflow.interfaces import IDCWorkflowDefinition
from Products.DCWorkflow.permissions import ManagePortal
from Products.DCWorkflow.utils import _xmldir
from Products.GenericSetup.interfaces import ISetupEnviron
from Products.GenericSetup.utils import BodyAdapterBase
TRIGGER_TYPES = ( 'AUTOMATIC', 'USER' )
_FILENAME = 'workflows.xml'
......@@ -1027,7 +1026,6 @@ def _initDCWorkflowStates( workflow, states ):
""" Initialize DCWorkflow states
"""
from Globals import PersistentMapping
from Products.DCWorkflow.States import StateDefinition
for s_info in states:
......@@ -1065,7 +1063,6 @@ def _initDCWorkflowTransitions( workflow, transitions ):
""" Initialize DCWorkflow transitions
"""
from Globals import PersistentMapping
from Products.DCWorkflow.Transitions import TransitionDefinition
for t_info in transitions:
......@@ -1107,7 +1104,6 @@ def _initDCWorkflowWorklists( workflow, worklists ):
""" Initialize DCWorkflow worklists
"""
from Globals import PersistentMapping
from Products.DCWorkflow.Worklists import WorklistDefinition
for w_info in worklists:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment