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
8d72e55e
Commit
8d72e55e
authored
Sep 15, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: ERP5Site_updateTranslationTable, reconstruct function for new workflow structure.
parent
868150c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
...ortal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
+5
-5
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
View file @
8d72e55e
...
...
@@ -71,13 +71,13 @@ def catalog_translation_list(object_list):\n
# Translate every workflow state in the context of the state variable\n
object_list = []\n
portal_workflow = context.portal_workflow\n
for wf_id, portal_type_list in portal_workflow.getChainDict().items():
\n
wf = getattr(portal_workflow, wf_id, None)
\n
portal_type_list = context.portal_types.objectValues()
\n
for wf in portal_workflow.objectValues():
\n
if wf is None:\n
continue\n
state_var = wf.
variables.getStateVar
()\n
if wf.
states
:\n
for state_id, state in wf.
states
.items():\n
state_var = wf.
getStateVariable
()\n
if wf.
getStateValueList()
:\n
for state_id, state in wf.
getStateValueList()
.items():\n
for lang in supported_languages:\n
for portal_type in portal_type_list:\n
key = (lang, portal_type, state_var, state_id)\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