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
58afc35c
Commit
58afc35c
authored
Nov 10, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workflow.py: deploy accessors the come with the new workflows' new features.
parent
29047347
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
product/ERP5Workflow/Document/Workflow.py
product/ERP5Workflow/Document/Workflow.py
+5
-6
No files found.
product/ERP5Workflow/Document/Workflow.py
View file @
58afc35c
...
...
@@ -344,7 +344,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
workflow_tool
=
portal
.
portal_workflow
result
=
[]
append
=
result
.
append
for
type_info
in
portal
.
portal_types
.
listTypeInfo
():
for
type_info
in
portal
.
portal_types
.
objectValues
():
portal_type
=
type_info
.
id
if
workflow_id
in
type_info
.
getTypeWorkflowList
():
append
(
portal_type
)
...
...
@@ -357,10 +357,9 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
return
None
variable_match_dict
=
{}
security_manager
=
getSecurityManager
()
workflow_id
=
self
.
id
workflow_id
=
self
.
getId
()
workflow_title
=
self
.
getTitle
()
for
worklist_definition
in
self
.
objectValues
(
portal_type
=
'Worklist'
):
worklist_id
=
worklist_definition
.
getReference
()
for
worklist_id
,
worklist_definition
in
self
.
getWorklistValueList
().
items
():
action_box_name
=
worklist_definition
.
getActboxName
()
guard
=
worklist_definition
.
getGuard
()
if
action_box_name
:
...
...
@@ -408,8 +407,8 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
'worklist_id'
:
worklist_id
,
'workflow_title'
:
workflow_title
,
'workflow_id'
:
workflow_id
,
'action_box_url'
:
worklist_definition
.
actbox_url
,
'action_box_category'
:
worklist_definition
.
actbox_category
}
'action_box_url'
:
worklist_definition
.
getActboxUrl
()
,
'action_box_category'
:
worklist_definition
.
getActboxCategory
()
}
variable_match_dict
[
worklist_id
]
=
variable_match
...
...
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