Commit 815ef040 authored by Aurel's avatar Aurel

modify Base_getWorkflowHistorySectionList and Base_viewWorkflowHistory

in order to see workflow title instead of workflow_id in workflow
history view


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5547 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cee096d8
......@@ -71,13 +71,14 @@ result = []\n
\n
history_dict = context.Base_getWorkflowHistory()\n
for workflow_id, workflow_history in history_dict.items():\n
workflow_title = context.portal_workflow[workflow_id].title or workflow_id\n
result.append(\n
ReportSection(\n
path=context.getPhysicalPath(),\n
title=workflow_id,\n
level=1,\n
form_id=\'Base_viewWorkflowHistory\',\n
selection_params={\'workflow_id\': workflow_id},\n
selection_params={\'workflow_id\': workflow_id, \'workflow_title\' : workflow_title},\n
listbox_display_mode=\'FlatListMode\')\n
)\n
\n
......@@ -137,6 +138,8 @@ return result\n
<string>_getiter_</string>
<string>workflow_id</string>
<string>workflow_history</string>
<string>_getitem_</string>
<string>workflow_title</string>
</tuple>
</value>
</item>
......
......@@ -601,7 +601,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.portal_selections.getSelectionParams(\'base_workflow_history_selection\')[\'workflow_id\']</string> </value>
<value> <string>python: here.portal_selections.getSelectionParams(\'base_workflow_history_selection\')[\'workflow_title\']</string> </value>
</item>
</dictionary>
</pickle>
......
2006-02-02 aurel
* modify Base_getWorkflowHistorySectionList and Base_viewWorkflowHistory
2006-02-01 kevin
* Delete all jump menus defined on Organisation module: they are just shortcuts to other modules.
* Same on Person module.
......
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