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
Labels
Merge Requests
138
Merge Requests
138
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
626c74bb
Commit
626c74bb
authored
Apr 20, 2022
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: Make sure that DCWorkflow patch are only applied with legacy Workflows.
parent
b7bd1612
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
12 deletions
+30
-12
product/ERP5/Interactor/PortalTypeClassInteractor.py
product/ERP5/Interactor/PortalTypeClassInteractor.py
+9
-7
product/ERP5/__init__.py
product/ERP5/__init__.py
+3
-1
product/ERP5Type/ZopePatch.py
product/ERP5Type/ZopePatch.py
+4
-3
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
-0
product/ERP5Type/patches/Worklists.py
product/ERP5Type/patches/Worklists.py
+3
-0
No files found.
product/ERP5/Interactor/PortalTypeClassInteractor.py
View file @
626c74bb
...
@@ -37,6 +37,8 @@ class PortalTypeClassInteractor(Interactor):
...
@@ -37,6 +37,8 @@ class PortalTypeClassInteractor(Interactor):
and dynamic properties.
and dynamic properties.
"""
"""
def
install
(
self
):
def
install
(
self
):
from
Products.ERP5Type
import
WITH_LEGACY_WORKFLOW
if
WITH_LEGACY_WORKFLOW
:
from
Products.DCWorkflow.Transitions
import
Transitions
from
Products.DCWorkflow.Transitions
import
Transitions
self
.
on
(
Transitions
.
addTransition
).
doAfter
(
self
.
resetDynamic
)
self
.
on
(
Transitions
.
addTransition
).
doAfter
(
self
.
resetDynamic
)
self
.
on
(
Transitions
.
deleteTransitions
).
doAfter
(
self
.
resetDynamic
)
self
.
on
(
Transitions
.
deleteTransitions
).
doAfter
(
self
.
resetDynamic
)
...
...
product/ERP5/__init__.py
View file @
626c74bb
...
@@ -81,6 +81,8 @@ def initialize( context ):
...
@@ -81,6 +81,8 @@ def initialize( context ):
'WorkflowException'
)
'WorkflowException'
)
# Make sure InteactionWorkflow is visible in UI
# Make sure InteactionWorkflow is visible in UI
from
Products.ERP5Type
import
WITH_LEGACY_WORKFLOW
if
WITH_LEGACY_WORKFLOW
:
import
Products.ERP5.InteractionWorkflow
import
Products.ERP5.InteractionWorkflow
# backward compatibility names
# backward compatibility names
...
...
product/ERP5Type/ZopePatch.py
View file @
626c74bb
...
@@ -38,7 +38,6 @@ if WITH_LEGACY_WORKFLOW:
...
@@ -38,7 +38,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
Expression
from
Products.ERP5Type.patches
import
Expression
from
Products.ERP5Type.patches
import
sqltest
from
Products.ERP5Type.patches
import
sqltest
...
@@ -65,7 +64,8 @@ from Products.ERP5Type.patches import PythonScript
...
@@ -65,7 +64,8 @@ from Products.ERP5Type.patches import PythonScript
from
Products.ERP5Type.patches
import
MailHost
from
Products.ERP5Type.patches
import
MailHost
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
...
@@ -101,5 +101,6 @@ from Products.ERP5Type.patches import urllib_opener
...
@@ -101,5 +101,6 @@ from Products.ERP5Type.patches import urllib_opener
# These symbols are required for backward compatibility
# These symbols are required for backward compatibility
from
Products.ERP5Type.patches.PropertyManager
import
ERP5PropertyManager
from
Products.ERP5Type.patches.PropertyManager
import
ERP5PropertyManager
from
Products.ERP5Type.Core.Workflow
import
ValidationFailed
from
Products.ERP5Type.Core.Workflow
import
ValidationFailed
from
Products.ERP5Type.patches.DCWorkflow
import
ERP5TransitionDefinition
if
WITH_LEGACY_WORKFLOW
:
from
Products.ERP5Type.patches.DCWorkflow
import
ERP5TransitionDefinition
from
Products.ERP5Type.patches.BTreeFolder2
import
ERP5BTreeFolder2Base
from
Products.ERP5Type.patches.BTreeFolder2
import
ERP5BTreeFolder2Base
product/ERP5Type/patches/DCWorkflow.py
View file @
626c74bb
...
@@ -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 @
626c74bb
...
@@ -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 @
626c74bb
...
@@ -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
Products.DCWorkflow.States
import
StateDefinition
from
Products.DCWorkflow.States
import
StateDefinition
from
Products.ERP5Type.Globals
import
DTMLFile
from
Products.ERP5Type.Globals
import
DTMLFile
...
...
product/ERP5Type/patches/WorkflowTool.py
View file @
626c74bb
...
@@ -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
from
types
import
StringTypes
from
types
import
StringTypes
...
...
product/ERP5Type/patches/Worklists.py
View file @
626c74bb
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