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
# sort the category list lexicographically\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
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
for base_category in category_order:\n
category = kw[base_category]\n
......@@ -96,26 +99,29 @@ return \'_\'.join(code_list)\n
</item>
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAA0AAAAMAAAASwAA
AHPdAAAAZwAAfQIAdAEAfAAAZAEAgwIAgwAAAXitAHQDAHwAAIMBAERdnwB9BQB0BQB8AQB8BQCD
AgB9BwBkAgB8BQB8BwBmAgAWfQgAdAEAdAEAdAkAZAMAgwIAZAQAgwIAfAgAgwEAfQoAfAoAdAsA
ZAUAZgIAagYAbxEAAWQGAGQHAHwIABaCAgBuAQABdAEAfAoAZAgAgwIAgwAAcBAAAXQBAHwKAGQJ
AIMCAIMAAH0MAHQBAHwCAGQKAIMCAHwMAIMBAAFxIwBXdAEAZAsAZAwAgwIAfAIAgwEAU2QAAFMo
DQAAAE5zBAAAAHNvcnRzBQAAACVzLyVzcxEAAABwb3J0YWxfY2F0ZWdvcmllc3MQAAAAZ2V0Q2F0
ZWdvcnlWYWx1ZXMAAAAAcxsAAABTZWN1cml0eVJvbGVEZWZpbml0aW9uRXJyb3JzGwAAAENhdGVn
b3J5ICclcycgZG9lc24ndCBleGlzdHMPAAAAZ2V0Q29kaWZpY2F0aW9ucwUAAABnZXRJZHMGAAAA
YXBwZW5kcwEAAABfcwQAAABqb2luK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AAAGJhc2VfY2F0ZWdvcnlzCQAAAF9nZXRpdGVtX3MIAAAA
Y2F0ZWdvcnlzDQAAAGNhdGVnb3J5X3BhdGhzBwAAAGNvbnRleHRzDwAAAGNhdGVnb3J5X29iamVj
dHMNAAAAY2F0ZWdvcnlfY29kZSgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMaAAAARVJQ
NVR5cGVfYXNTZWN1cml0eUdyb3VwSWQBAAAAcyAAAAAACQYFBgEZARQAHQESAg0ABgEPARABHgET
AREBKAEUAigBAAAAcxoAAABFUlA1VHlwZV9hc1NlY3VyaXR5R3JvdXBJZCgBAAAAcxoAAABFUlA1
VHlwZV9hc1NlY3VyaXR5R3JvdXBJZCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAA
PG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
</item>
<item>
<key> <string>_filepath</string> </key>
......@@ -152,15 +158,19 @@ AAA=</string> </value>
<string>category_order</string>
<string>kw</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>x</string>
<string>_getattr_</string>
<string>base_category</string>
<string>_getitem_</string>
<string>category</string>
<string>category_path</string>
<string>context</string>
<string>category_object</string>
<string>None</string>
<string>category_code</string>
</tuple>
</value>
......
2005-12-08 Kevin
* Transform tuple to list to let ERP5Type_asSecurityGroupId do a sort.
2005-12-07 yo
* 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