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
d52a440c
Commit
d52a440c
authored
Oct 30, 2015
by
wenjie.zheng
Committed by
wenjie.zheng
Nov 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Folder_generateWorkflowReport.xml: resolve conflict.
parent
e9dd253d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_generateWorkflowReport.xml
.../portal_skins/erp5_core/Folder_generateWorkflowReport.xml
+5
-4
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_generateWorkflowReport.xml
View file @
d52a440c
...
...
@@ -66,16 +66,17 @@ for portal_type in context.allowedContentTypes():\n
portal_type_id = portal_type.getId()\n
portal_type_translated_title_dict[portal_type_id] = translateString(portal_type.getTitle())\n
for workflow in getWorkflowsFor(portal_type_id):\n
state_container =
getattr(workflow, \'states\', None
)\n
state_container =
workflow.getStateValuesList(
)\n
if state_container is not None and len(state_container) >
1:\n
state_var = workflow.state_var\n
state_var = workflow.getStateVariable()\n
if state_var is None:\n
state_var = \'state\'\n
workflow_id = workflow.getId()\n
workflow_translated_title_dict[workflow_id] = translateString(workflow.title)\n
type_state_variable_workflow_dict[(portal_type_id, state_var)] = workflow_id\n
state_count_dict = type_workflow_state_count_dict_dict.setdefault((portal_type_id, workflow_id), {})\n
translated_state_title_dict = workflow_translated_state_title_dict.setdefault(workflow_id, {})\n
for state in state_container.objectValues():\n
state_id = state.getId()\n
for state_id, state in state_container.items():\n
# TODO: support workflow-specific translations\n
translated_state_title_dict[state_id] = translateString(state.title)\n
state_count_dict[state_id] = 0\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