Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
6c90c7e8
Commit
6c90c7e8
authored
Nov 09, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PortalTypeClassInteractor.py: add compatibility of workflow, transition, variable _edit function.
parent
b49af4f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
product/ERP5/Interactor/PortalTypeClassInteractor.py
product/ERP5/Interactor/PortalTypeClassInteractor.py
+14
-2
No files found.
product/ERP5/Interactor/PortalTypeClassInteractor.py
View file @
6c90c7e8
...
...
@@ -28,7 +28,7 @@
##############################################################################
from
Products.ERP5Type.Interactor.Interactor
import
Interactor
from
zLOG
import
LOG
,
INFO
,
WARNING
class
PortalTypeClassInteractor
(
Interactor
):
"""
This interactor handles all the calls to resetDynamicDocuments
...
...
@@ -58,7 +58,19 @@ class PortalTypeClassInteractor(Interactor):
# New workflow compatibility
from
Products.ERP5Type.ERP5Type
import
ERP5TypeInformation
self
.
on
(
ERP5TypeInformation
.
addTypeWorkflowList
).
doAfter
(
self
.
resetDynamic
)
self
.
on
(
ERP5TypeInformation
.
setTypeWorkflowList
).
doAfter
(
self
.
resetDynamic
)
self
.
on
(
ERP5TypeInformation
.
_edit
).
doAfter
(
self
.
resetDynamic
)
from
Products.ERP5Workflow.Document.Workflow
import
Workflow
self
.
on
(
Workflow
.
_delObject
).
doAfter
(
self
.
resetDynamic
)
self
.
on
(
Workflow
.
_edit
).
doAfter
(
self
.
resetDynamic
)
from
Products.ERP5Workflow.Document.Transition
import
Transition
self
.
on
(
Transition
.
_delObject
).
doAfter
(
self
.
resetDynamic
)
self
.
on
(
Transition
.
_edit
).
doAfter
(
self
.
resetDynamic
)
from
Products.ERP5Workflow.Document.Variable
import
Variable
self
.
on
(
Variable
.
_edit
).
doAfter
(
self
.
resetDynamic
)
def
resetDynamic
(
self
,
method_call_object
,
*
args
,
**
kw
):
"""
...
...
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