diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/ERP5Site_getPendingWorkListSectionList.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/ERP5Web_getMyTaskSectionList.xml similarity index 86% rename from bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/ERP5Site_getPendingWorkListSectionList.xml rename to bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/ERP5Web_getMyTaskSectionList.xml index f6cb91829c1a1d79f7dff89430a2eb9820a47247..820fc83a0d922a17f191b3d2cb8644c3f03daf01 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/ERP5Site_getPendingWorkListSectionList.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/ERP5Web_getMyTaskSectionList.xml @@ -69,39 +69,37 @@ <item> <key> <string>_body</string> </key> <value> <string>from Products.ERP5Form.Report import ReportSection\n +\n result = []\n \n -workflow_dict = {}\n -action_dict = context.portal_actions.listFilteredActionsFor(context)\n +workflow_dict = {}\n +action_dict = context.portal_actions.listFilteredActionsFor(context)\n global_action_list = action_dict[\'global\']\n +\n +\n for action in global_action_list:\n if action.has_key(\'workflow_id\'):\n +\n # Get the workflow\n workflow = getattr(context.portal_workflow, action[\'workflow_id\'])\n - if not workflow_dict.has_key(action[\'workflow_id\']):\n - # Each time we find a new workflow, we add a title section\n - workflow_dict[action[\'workflow_id\']] = None\n - result.append(\n - ReportSection(\n - title=workflow.title,\n - level=1,\n - form_id=None,\n - )\n - )\n + result.append( ReportSection( path = workflow.getPhysicalPath()\n + , level = 1\n + , form_id = \'ERP5Web_viewMyTaskWorkflowHeader\'\n + )\n + )\n +\n # Each time we find a worklist, we add a section\n if action.has_key(\'worklist_id\'):\n # Get the worklist\n worklist = getattr(workflow.worklists, action[\'worklist_id\'])\n - result.append(\n - ReportSection(\n - path=worklist.getPhysicalPath(),\n - title=worklist.title,\n - level=1,\n - form_id=\'WorkList_viewPendingWork\',\n - selection_params={},\n - listbox_display_mode=\'FlatListMode\')\n - )\n - \n + # Print worklist content in a listbox\n + result.append( ReportSection( path = worklist.getPhysicalPath()\n + , level = 1\n + , form_id = \'WorkList_viewPendingWork\'\n + , selection_params = {}\n + , listbox_display_mode = \'FlatListMode\'\n + )\n + )\n \n return result\n </string> </value> @@ -124,6 +122,12 @@ return result\n <none/> </value> </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> <item> <key> <string>_params</string> </key> <value> <string></string> </value> @@ -183,8 +187,6 @@ return result\n <string>action</string> <string>getattr</string> <string>workflow</string> - <string>None</string> - <string>_write_</string> <string>worklist</string> </tuple> </value> @@ -202,7 +204,7 @@ return result\n </item> <item> <key> <string>id</string> </key> - <value> <string>ERP5Site_getPendingWorkListSectionList</string> </value> + <value> <string>ERP5Web_getMyTaskSectionList</string> </value> </item> <item> <key> <string>warnings</string> </key>