Commit 56b226b4 authored by Kevin Deldycke's avatar Kevin Deldycke

Rename ERP5Site_getPendingWorkListSectionList to ERP5Web_getMyTaskSectionList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8636 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 80087a28
...@@ -69,39 +69,37 @@ ...@@ -69,39 +69,37 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.ERP5Form.Report import ReportSection\n <value> <string>from Products.ERP5Form.Report import ReportSection\n
\n
result = []\n result = []\n
\n \n
workflow_dict = {}\n workflow_dict = {}\n
action_dict = context.portal_actions.listFilteredActionsFor(context)\n action_dict = context.portal_actions.listFilteredActionsFor(context)\n
global_action_list = action_dict[\'global\']\n global_action_list = action_dict[\'global\']\n
\n
\n
for action in global_action_list:\n for action in global_action_list:\n
if action.has_key(\'workflow_id\'):\n if action.has_key(\'workflow_id\'):\n
\n
# Get the workflow\n # Get the workflow\n
workflow = getattr(context.portal_workflow, action[\'workflow_id\'])\n workflow = getattr(context.portal_workflow, action[\'workflow_id\'])\n
if not workflow_dict.has_key(action[\'workflow_id\']):\n result.append( ReportSection( path = workflow.getPhysicalPath()\n
# Each time we find a new workflow, we add a title section\n , level = 1\n
workflow_dict[action[\'workflow_id\']] = None\n , form_id = \'ERP5Web_viewMyTaskWorkflowHeader\'\n
result.append(\n
ReportSection(\n
title=workflow.title,\n
level=1,\n
form_id=None,\n
)\n )\n
)\n )\n
\n
# Each time we find a worklist, we add a section\n # Each time we find a worklist, we add a section\n
if action.has_key(\'worklist_id\'):\n if action.has_key(\'worklist_id\'):\n
# Get the worklist\n # Get the worklist\n
worklist = getattr(workflow.worklists, action[\'worklist_id\'])\n worklist = getattr(workflow.worklists, action[\'worklist_id\'])\n
result.append(\n # Print worklist content in a listbox\n
ReportSection(\n result.append( ReportSection( path = worklist.getPhysicalPath()\n
path=worklist.getPhysicalPath(),\n , level = 1\n
title=worklist.title,\n , form_id = \'WorkList_viewPendingWork\'\n
level=1,\n , selection_params = {}\n
form_id=\'WorkList_viewPendingWork\',\n , listbox_display_mode = \'FlatListMode\'\n
selection_params={},\n )\n
listbox_display_mode=\'FlatListMode\')\n
)\n )\n
\n
\n \n
return result\n return result\n
</string> </value> </string> </value>
...@@ -124,6 +122,12 @@ return result\n ...@@ -124,6 +122,12 @@ return result\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -183,8 +187,6 @@ return result\n ...@@ -183,8 +187,6 @@ return result\n
<string>action</string> <string>action</string>
<string>getattr</string> <string>getattr</string>
<string>workflow</string> <string>workflow</string>
<string>None</string>
<string>_write_</string>
<string>worklist</string> <string>worklist</string>
</tuple> </tuple>
</value> </value>
...@@ -202,7 +204,7 @@ return result\n ...@@ -202,7 +204,7 @@ return result\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>ERP5Site_getPendingWorkListSectionList</string> </value> <value> <string>ERP5Web_getMyTaskSectionList</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
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