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
Nikola Balog
erp5
Commits
f70cc18f
Commit
f70cc18f
authored
Apr 25, 2022
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py3: DCWorkflow is python2-only.
parent
626c74bb
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
7 deletions
+27
-7
product/ERP5Type/Core/Workflow.py
product/ERP5Type/Core/Workflow.py
+2
-2
product/ERP5Type/Tool/WorkflowTool.py
product/ERP5Type/Tool/WorkflowTool.py
+16
-1
product/ERP5Type/ZopePatch.py
product/ERP5Type/ZopePatch.py
+4
-1
product/ERP5Type/__init__.py
product/ERP5Type/__init__.py
+5
-1
product/ERP5Type/patches/WorkflowTool.py
product/ERP5Type/patches/WorkflowTool.py
+0
-2
No files found.
product/ERP5Type/Core/Workflow.py
View file @
f70cc18f
...
@@ -91,8 +91,6 @@ from Products.DCWorkflow.utils import Message as _
...
@@ -91,8 +91,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
,
...
@@ -509,6 +507,8 @@ class Workflow(XMLObject):
...
@@ -509,6 +507,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/Tool/WorkflowTool.py
View file @
f70cc18f
...
@@ -53,7 +53,7 @@ SECURITY_PARAMETER_ID = 'local_roles'
...
@@ -53,7 +53,7 @@ SECURITY_PARAMETER_ID = 'local_roles'
from
AccessControl.SecurityInfo
import
ModuleSecurityInfo
from
AccessControl.SecurityInfo
import
ModuleSecurityInfo
ModuleSecurityInfo
(
__name__
).
declarePublic
(
'SECURITY_PARAMETER_ID'
)
ModuleSecurityInfo
(
__name__
).
declarePublic
(
'SECURITY_PARAMETER_ID'
)
class
WorkflowTool
(
BaseTool
,
OriginalWorkflowTool
):
class
WorkflowTool
(
BaseTool
):
"""
"""
A new container for DC workflow and workflow;
A new container for DC workflow and workflow;
inherits methods from original WorkflowTool.py;
inherits methods from original WorkflowTool.py;
...
@@ -75,6 +75,21 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
...
@@ -75,6 +75,21 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
'DublinCore'
,
'DublinCore'
,
)
)
def
_isBootstrapRequired
(
self
):
"""
Required by synchronizeDynamicModules() to bootstrap an empty site and
thus create portal_components
"""
return
False
def
_bootstrap
(
self
):
"""
Required by synchronizeDynamicModules() to bootstrap an empty site and
thus create portal_components
"""
pass
def
filtered_meta_types
(
self
,
user
=
None
):
def
filtered_meta_types
(
self
,
user
=
None
):
return
False
return
False
...
...
product/ERP5Type/ZopePatch.py
View file @
f70cc18f
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
##############################################################################
##############################################################################
import
six
from
Products.ERP5Type
import
WITH_LEGACY_WORKFLOW
from
Products.ERP5Type
import
WITH_LEGACY_WORKFLOW
...
@@ -81,7 +82,9 @@ from Products.ERP5Type.patches import zopecontenttype
...
@@ -81,7 +82,9 @@ from Products.ERP5Type.patches import zopecontenttype
from
Products.ERP5Type.patches
import
OFSImage
from
Products.ERP5Type.patches
import
OFSImage
from
Products.ERP5Type.patches
import
_transaction
from
Products.ERP5Type.patches
import
_transaction
from
Products.ERP5Type.patches
import
default_zpublisher_encoding
from
Products.ERP5Type.patches
import
default_zpublisher_encoding
from
Products.ERP5Type.patches
import
DCWorkflowGraph
if
six
.
PY2
:
# DCWorkflowGraph is dead since 2011, so no py3 version
from
Products.ERP5Type.patches
import
DCWorkflowGraph
from
Products.ERP5Type.patches
import
SourceCodeEditorZMI
from
Products.ERP5Type.patches
import
SourceCodeEditorZMI
from
Products.ERP5Type.patches
import
CachingPolicyManager
from
Products.ERP5Type.patches
import
CachingPolicyManager
from
Products.ERP5Type.patches
import
AcceleratedHTTPCacheManager
from
Products.ERP5Type.patches
import
AcceleratedHTTPCacheManager
...
...
product/ERP5Type/__init__.py
View file @
f70cc18f
...
@@ -36,7 +36,11 @@ from .patches import python, pylint, globalrequest
...
@@ -36,7 +36,11 @@ from .patches import python, pylint, globalrequest
from
zLOG
import
LOG
,
INFO
from
zLOG
import
LOG
,
INFO
DISPLAY_BOOT_PROCESS
=
False
DISPLAY_BOOT_PROCESS
=
False
WITH_LEGACY_WORKFLOW
=
True
# BBB
if
six
.
PY3
:
# DCWorkflow python2-only
WITH_LEGACY_WORKFLOW
=
False
else
:
WITH_LEGACY_WORKFLOW
=
True
# We have a name conflict with source_reference and destination_reference,
# We have a name conflict with source_reference and destination_reference,
# which are at the same time property accessors for 'source_reference'
# which are at the same time property accessors for 'source_reference'
...
...
product/ERP5Type/patches/WorkflowTool.py
View file @
f70cc18f
...
@@ -26,8 +26,6 @@ from Products.ERP5Type.Globals import InitializeClass
...
@@ -26,8 +26,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
...
...
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