Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
e78ac944
Commit
e78ac944
authored
Mar 21, 2022
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Products.DCWorkflow removal.
parent
1699b058
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
7 deletions
+18
-7
product/ERP5Type/Core/Workflow.py
product/ERP5Type/Core/Workflow.py
+2
-2
product/ERP5Type/ZopePatch.py
product/ERP5Type/ZopePatch.py
+2
-2
product/ERP5Type/patches/DCWorkflow.py
product/ERP5Type/patches/DCWorkflow.py
+2
-1
product/ERP5Type/patches/StateChangeInfoPatch.py
product/ERP5Type/patches/StateChangeInfoPatch.py
+3
-0
product/ERP5Type/patches/States.py
product/ERP5Type/patches/States.py
+3
-0
product/ERP5Type/patches/WorkflowTool.py
product/ERP5Type/patches/WorkflowTool.py
+3
-2
product/ERP5Type/patches/Worklists.py
product/ERP5Type/patches/Worklists.py
+3
-0
No files found.
product/ERP5Type/Core/Workflow.py
View file @
e78ac944
...
@@ -92,8 +92,6 @@ from Products.DCWorkflow.utils import Message as _
...
@@ -92,8 +92,6 @@ from Products.DCWorkflow.utils import Message as _
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type.Cache
import
CachingMethod
from
Products.ERP5Type.Cache
import
CachingMethod
from
Products.ERP5Type.Globals
import
PersistentMapping
,
InitializeClass
from
Products.ERP5Type.Globals
import
PersistentMapping
,
InitializeClass
from
Products.ERP5Type.patches.WorkflowTool
import
(
SECURITY_PARAMETER_ID
,
WORKLIST_METADATA_KEY
)
from
Products.ERP5Type.Utils
import
convertToMixedCase
from
Products.ERP5Type.Utils
import
convertToMixedCase
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5Type.Core.WorkflowTransition
import
(
TRIGGER_AUTOMATIC
,
from
Products.ERP5Type.Core.WorkflowTransition
import
(
TRIGGER_AUTOMATIC
,
...
@@ -510,6 +508,8 @@ class Workflow(XMLObject):
...
@@ -510,6 +508,8 @@ class Workflow(XMLObject):
security_manager
=
getSecurityManager
()
security_manager
=
getSecurityManager
()
workflow_id
=
self
.
getId
()
workflow_id
=
self
.
getId
()
workflow_title
=
self
.
getTitle
()
workflow_title
=
self
.
getTitle
()
from
Products.ERP5Type.Tool.WorkflowTool
import
(
SECURITY_PARAMETER_ID
,
WORKLIST_METADATA_KEY
)
for
worklist_definition
in
worklist_value_list
:
for
worklist_definition
in
worklist_value_list
:
action_box_name
=
worklist_definition
.
getActionName
()
action_box_name
=
worklist_definition
.
getActionName
()
guard_role_list
=
worklist_definition
.
getGuardRoleList
()
guard_role_list
=
worklist_definition
.
getGuardRoleList
()
...
...
product/ERP5Type/ZopePatch.py
View file @
e78ac944
...
@@ -41,7 +41,6 @@ if WITH_LEGACY_WORKFLOW:
...
@@ -41,7 +41,6 @@ if WITH_LEGACY_WORKFLOW:
from
Products.ERP5Type.patches
import
BTreeFolder2
from
Products.ERP5Type.patches
import
BTreeFolder2
if
WITH_LEGACY_WORKFLOW
:
if
WITH_LEGACY_WORKFLOW
:
from
Products.ERP5Type.patches
import
WorkflowTool
from
Products.ERP5Type.patches
import
WorkflowTool
from
Products.ERP5Type.patches
import
WorkflowTool
from
Products.ERP5Type.patches
import
DynamicType
from
Products.ERP5Type.patches
import
DynamicType
from
Products.ERP5Type.patches
import
XMLExportImport
from
Products.ERP5Type.patches
import
XMLExportImport
from
Products.ERP5Type.patches
import
ppml
from
Products.ERP5Type.patches
import
ppml
...
@@ -73,7 +72,8 @@ if six.PY2:
...
@@ -73,7 +72,8 @@ if six.PY2:
# No more ZServer
# No more ZServer
from
Products.ERP5Type.patches
import
http_server
from
Products.ERP5Type.patches
import
http_server
from
Products.ERP5Type.patches
import
memcache_client
from
Products.ERP5Type.patches
import
memcache_client
from
Products.ERP5Type.patches
import
StateChangeInfoPatch
if
WITH_LEGACY_WORKFLOW
:
from
Products.ERP5Type.patches
import
StateChangeInfoPatch
from
Products.ERP5Type.patches
import
transforms
from
Products.ERP5Type.patches
import
transforms
from
Products.ERP5Type.patches
import
OFSPdata
from
Products.ERP5Type.patches
import
OFSPdata
from
Products.ERP5Type.patches
import
make_hidden_input
from
Products.ERP5Type.patches
import
make_hidden_input
...
...
product/ERP5Type/patches/DCWorkflow.py
View file @
e78ac944
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
#
#
##############################################################################
##############################################################################
# WITH_LEGACY_WORKFLOW
from
Products.ERP5Type
import
WITH_LEGACY_WORKFLOW
assert
WITH_LEGACY_WORKFLOW
## ERP5 Workflow: This must go before any Products.DCWorkflow imports as this
## ERP5 Workflow: This must go before any Products.DCWorkflow imports as this
## patch createExprContext() from-imported in several of its modules
## patch createExprContext() from-imported in several of its modules
...
...
product/ERP5Type/patches/StateChangeInfoPatch.py
View file @
e78ac944
...
@@ -26,6 +26,9 @@
...
@@ -26,6 +26,9 @@
#
#
##############################################################################
##############################################################################
from
Products.ERP5Type
import
WITH_LEGACY_WORKFLOW
assert
WITH_LEGACY_WORKFLOW
from
Products.DCWorkflow.Expression
import
StateChangeInfo
from
Products.DCWorkflow.Expression
import
StateChangeInfo
from
Products.PythonScripts.Utility
import
allow_class
from
Products.PythonScripts.Utility
import
allow_class
allow_class
(
StateChangeInfo
)
allow_class
(
StateChangeInfo
)
...
...
product/ERP5Type/patches/States.py
View file @
e78ac944
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
#
#
##############################################################################
##############################################################################
from
Products.ERP5Type
import
WITH_LEGACY_WORKFLOW
assert
WITH_LEGACY_WORKFLOW
# State types patch for DCWorkflow
# State types patch for DCWorkflow
from
builtins
import
str
from
builtins
import
str
from
builtins
import
map
from
builtins
import
map
...
...
product/ERP5Type/patches/WorkflowTool.py
View file @
e78ac944
...
@@ -13,6 +13,9 @@
...
@@ -13,6 +13,9 @@
#
#
##############################################################################
##############################################################################
from
Products.ERP5Type
import
WITH_LEGACY_WORKFLOW
assert
WITH_LEGACY_WORKFLOW
from
zLOG
import
LOG
,
WARNING
from
zLOG
import
LOG
,
WARNING
# Make sure Interaction Workflows are called even if method not wrapped
# Make sure Interaction Workflows are called even if method not wrapped
...
@@ -22,8 +25,6 @@ from Products.ERP5Type.Globals import InitializeClass
...
@@ -22,8 +25,6 @@ from Products.ERP5Type.Globals import InitializeClass
from
Products.CMFCore.WorkflowTool
import
WorkflowTool
from
Products.CMFCore.WorkflowTool
import
WorkflowTool
from
Products.CMFCore.WorkflowCore
import
ObjectDeleted
from
Products.CMFCore.WorkflowCore
import
ObjectDeleted
from
Products.CMFCore.WorkflowCore
import
WorkflowException
from
Products.CMFCore.WorkflowCore
import
WorkflowException
from
Products.DCWorkflow.DCWorkflow
import
DCWorkflowDefinition
from
Products.DCWorkflow.Transitions
import
TRIGGER_WORKFLOW_METHOD
from
Products.DCWorkflow.utils
import
Message
as
_
from
Products.DCWorkflow.utils
import
Message
as
_
from
Products.DCWorkflow.Transitions
import
TRIGGER_USER_ACTION
from
Products.DCWorkflow.Transitions
import
TRIGGER_USER_ACTION
...
...
product/ERP5Type/patches/Worklists.py
View file @
e78ac944
from
Products.ERP5Type
import
WITH_LEGACY_WORKFLOW
assert
WITH_LEGACY_WORKFLOW
from
Products.DCWorkflow.Worklists
import
Worklists
from
Products.DCWorkflow.Worklists
import
Worklists
from
Products.DCWorkflow.Worklists
import
WorklistDefinition
from
Products.DCWorkflow.Worklists
import
WorklistDefinition
from
Products.ERP5Type.Permissions
import
ManagePortal
from
Products.ERP5Type.Permissions
import
ManagePortal
...
...
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