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
3fbbe559
Commit
3fbbe559
authored
Oct 20, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: Folder_generateWorkflowReport compatibility modification.
parent
01225d6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_generateWorkflowReport.xml
.../portal_skins/erp5_core/Folder_generateWorkflowReport.xml
+9
-5
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_generateWorkflowReport.xml
View file @
3fbbe559
...
...
@@ -68,24 +68,28 @@ for portal_type in content_type_list:\n
workflow_list = workflow_tool.getWorkflowsFor(portal_type_id)\n
# Retrieve the workflows by portal_type\n
for workflow in workflow_list:\n
workflow_title = workflow.title\n
workflow_state_dict = workflow.getStateValueList()\n
# not \'edit_workflow\' because state variable is not in catalog\n
if
getattr(workflow, \'states\', None) is not None and
\\\n
if
workflow_state_dict != {} and
\\\n
workflow.getId() != \'edit_workflow\':\n
#retrieve state_var to search in the catalog the states use by the\n
#workflow\n
state_var = workflow.state_var\n
state_var = workflow.getStateVariable()\n
if state_var is None:\n
state_var = \'state\'\n
result_list = context.Base_zCountByWorkflowState(portal_type=portal_type_id,\n
state_name=state_var)\n
if not ((len(result_list) == 1) and (result_list[0][0] is None)):\n
for result in result_list:\n
portal_type_dict = result_dict.get(portal_type_id,{})\n
workflow_dict = portal_type_dict.get(workflow
.
title,{})\n
workflow_dict = portal_type_dict.get(workflow
_
title,{})\n
workflow_dict.update({result[0]:result[1]})\n
portal_type_dict.update({workflow
.
title:workflow_dict})\n
portal_type_dict.update({workflow
_
title:workflow_dict})\n
result_dict.update({portal_type_id:portal_type_dict})\n
# store the title states for the translation\n
if not translate_state_dict.has_key(result[0]):\n
state_title =
getattr(workflow.states,
result[0]).title_or_id()\n
state_title =
workflow_state_dict.get(
result[0]).title_or_id()\n
translate_state_dict[result[0]] = state_title\n
\n
#Display the result\n
...
...
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