Commit 2fc8808e authored by Nicolas Delaby's avatar Nicolas Delaby

Store the state_id on each items, usefull for merging or filtering feature.

reviewed by Seb

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32228 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent df3a36d6
......@@ -111,11 +111,15 @@ for workflow_item in workflow_item_list:\n
# Display the workflow state in the state columns\n
key = key[len(compatibility_name):]\n
if key.endswith(\'state\'): \n
# Store locally the id of state, usefull for merging action and transition\n
state_id = wf_states.get(value, marker) and wf_states[value].id\n
o.setProperty(\'state_id\', state_id)\n
\n
key = \'state\'\n
if display:\n
value = wf_states.get(value, marker) and wf_states[value].title\n
else:\n
value = wf_states.get(value, marker) and wf_states[value].id\n
value = state_id\n
if key == \'action\':\n
# Store locally the id of action, usefull for merging action and transition\n
o.setProperty(\'action_id\', value)\n
......@@ -247,6 +251,7 @@ return result\n
<string>value</string>
<string>compatibility_name</string>
<string>len</string>
<string>state_id</string>
<string>same_type</string>
<string>getattr</string>
</tuple>
......
1457
\ No newline at end of file
1458
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment