Commit 591639df authored by Nicolas Delaby's avatar Nicolas Delaby

sort portal_types in workflow report

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22559 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 02a20428
......@@ -94,7 +94,9 @@ for content_type in content_type_list:\n
result_dict.update({content_type_id: portal_type_dict})\n
\n
state_list_dict = {}\n
for portal_type in result_dict.keys():\n
portal_type_list = result_dict.keys()\n
portal_type_list.sort()\n
for portal_type in portal_type_list:\n
listbox.append({\'portal_type\': portal_type,\n
\'state\' : \'\',\n
\'count\' : \'\'})\n
......@@ -194,6 +196,7 @@ return context.Folder_viewWorkflowReport()\n
<string>portal_type_dict</string>
<string>count</string>
<string>state_list_dict</string>
<string>portal_type_list</string>
<string>portal_type</string>
<string>state_list</string>
<string>state</string>
......
878
\ No newline at end of file
879
\ 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