Commit bfb531f2 authored by Kevin Deldycke's avatar Kevin Deldycke

Transform tuple to list to let ERP5Type_asSecurityGroupId do a sort.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4551 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 399bc515
...@@ -80,7 +80,10 @@ code_list = []\n ...@@ -80,7 +80,10 @@ code_list = []\n
# sort the category list lexicographically\n # sort the category list lexicographically\n
# this prevents us to choose the exact order we want,\n # this prevents us to choose the exact order we want,\n
# but also prevents some human mistake to f*ck everything up by creating site_function instead of function_site\n # but also prevents some human mistake to f*ck everything up by creating site_function instead of function_site\n
category_order.sort()\n category_list = []\n
if category_order not in (None, \'\', (), []):\n
category_list = [ x for x in category_order]\n
category_order = category_list.sort()\n
\n \n
for base_category in category_order:\n for base_category in category_order:\n
category = kw[base_category]\n category = kw[base_category]\n
...@@ -96,26 +99,29 @@ return \'_\'.join(code_list)\n ...@@ -96,26 +99,29 @@ return \'_\'.join(code_list)\n
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAA0AAAAMAAAASwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAABEAAAARAAAASwAA
AHPdAAAAZwAAfQIAdAEAfAAAZAEAgwIAgwAAAXitAHQDAHwAAIMBAERdnwB9BQB0BQB8AQB8BQCD AHMvAQAAZwAAfQIAZwAAfQMAfAAAdAMAZAEAZgAAZwAAZgQAagcAbzEAAWcAAARpBAB9BgB0BgB8
AgB9BwBkAgB8BQB8BwBmAgAWfQgAdAEAdAEAdAkAZAMAgwIAZAQAgwIAfAgAgwEAfQoAfAoAdAsA AACDAQBEXRAAfQgAfAYAfAgAgwEAAXE5AH4GAH0DAG4BAAF0CAB8AwBkAgCDAgCDAAB9AAB4rQB0
ZAUAZ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2F0ZWdvcnlzCQAAAF9nZXRpdGVtX3MIAAAA
AABFUlA1VHlwZV9hc1NlY3VyaXR5R3JvdXBJZCgBAAAAcxoAAABFUlA1VHlwZV9hc1NlY3VyaXR5 Y2F0ZWdvcnlzDQAAAGNhdGVnb3J5X3BhdGhzBwAAAGNvbnRleHRzDwAAAGNhdGVnb3J5X29iamVj
R3JvdXBJZCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAA dHMNAAAAY2F0ZWdvcnlfY29kZSgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMaAAAARVJQ
AAA=</string> </value> NVR5cGVfYXNTZWN1cml0eUdyb3VwSWQBAAAAcyAAAAAACQYFBgEZARQAHQESAg0ABgEPARABHgET
AREBKAEUAigBAAAAcxoAAABFUlA1VHlwZV9hc1NlY3VyaXR5R3JvdXBJZCgBAAAAcxoAAABFUlA1
VHlwZV9hc1NlY3VyaXR5R3JvdXBJZCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAA
PG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
...@@ -152,15 +158,19 @@ AAA=</string> </value> ...@@ -152,15 +158,19 @@ AAA=</string> </value>
<string>category_order</string> <string>category_order</string>
<string>kw</string> <string>kw</string>
<string>code_list</string> <string>code_list</string>
<string>_getattr_</string> <string>category_list</string>
<string>None</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>x</string>
<string>_getattr_</string>
<string>base_category</string> <string>base_category</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>category</string> <string>category</string>
<string>category_path</string> <string>category_path</string>
<string>context</string> <string>context</string>
<string>category_object</string> <string>category_object</string>
<string>None</string>
<string>category_code</string> <string>category_code</string>
</tuple> </tuple>
</value> </value>
......
2005-12-08 Kevin
* Transform tuple to list to let ERP5Type_asSecurityGroupId do a sort.
2005-12-07 yo 2005-12-07 yo
* New skins: erp5_html.css and form_html for PDF editing. * New skins: erp5_html.css and form_html for PDF editing.
......
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