Commit 055905c0 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: Suggested by vincent (squash)

parent 93a59035
Pipeline #38596 failed with stage
in 0 seconds
......@@ -3,14 +3,13 @@ def handleSort(_category_dict):
# generates the same Security ID. This workarround is required because
# the value already arrives at this point pre-sorted on various locations
# and it is not possible to change since it is widely used.
if _category_dict.keys() == ['function', 'source_project']:
category_list = _category_dict.keys()
if category_list == ['function', 'source_project']:
return ['source_project', 'function']
if _category_dict.keys() == ['function', 'destination_project']:
if category_list == ['function', 'destination_project']:
return ['destination_project', 'function']
# Enforce return list in case
return list(_category_dict)
return category_list
return context.portal_skins.erp5_core.ERP5Type_asSecurityGroupIdSet(
category_dict=category_dict, key_sort=handleSort)
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