Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Products.DCWorkflow
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Products.DCWorkflow
Commits
f24c2345
Commit
f24c2345
authored
Jan 03, 2009
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- import cleanup
parent
edf55c6b
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
33 deletions
+23
-33
Products/DCWorkflow/DCWorkflow.py
Products/DCWorkflow/DCWorkflow.py
+1
-5
Products/DCWorkflow/Expression.py
Products/DCWorkflow/Expression.py
+5
-5
Products/DCWorkflow/Guard.py
Products/DCWorkflow/Guard.py
+2
-3
Products/DCWorkflow/Scripts.py
Products/DCWorkflow/Scripts.py
+1
-1
Products/DCWorkflow/States.py
Products/DCWorkflow/States.py
+1
-1
Products/DCWorkflow/Transitions.py
Products/DCWorkflow/Transitions.py
+2
-2
Products/DCWorkflow/Variables.py
Products/DCWorkflow/Variables.py
+2
-2
Products/DCWorkflow/WorkflowUIMixin.py
Products/DCWorkflow/WorkflowUIMixin.py
+2
-3
Products/DCWorkflow/Worklists.py
Products/DCWorkflow/Worklists.py
+2
-2
Products/DCWorkflow/exportimport.py
Products/DCWorkflow/exportimport.py
+5
-9
No files found.
Products/DCWorkflow/DCWorkflow.py
View file @
f24c2345
...
...
@@ -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
...
...
Products/DCWorkflow/Expression.py
View file @
f24c2345
...
...
@@ -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
...
...
Products/DCWorkflow/Guard.py
View file @
f24c2345
...
...
@@ -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
...
...
Products/DCWorkflow/Scripts.py
View file @
f24c2345
...
...
@@ -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
...
...
Products/DCWorkflow/States.py
View file @
f24c2345
...
...
@@ -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
...
...
Products/DCWorkflow/Transitions.py
View file @
f24c2345
...
...
@@ -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
...
...
Products/DCWorkflow/Variables.py
View file @
f24c2345
...
...
@@ -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
...
...
Products/DCWorkflow/WorkflowUIMixin.py
View file @
f24c2345
...
...
@@ -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
...
...
Products/DCWorkflow/Worklists.py
View file @
f24c2345
...
...
@@ -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
...
...
Products/DCWorkflow/exportimport.py
View file @
f24c2345
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment