Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
055905c0
Commit
055905c0
authored
Dec 16, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: Suggested by vincent (squash)
parent
93a59035
Pipeline
#38596
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_core/ERP5Type_asSecurityGroupIdSet.py
...portal_skins/slapos_core/ERP5Type_asSecurityGroupIdSet.py
+4
-5
No files found.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_core/ERP5Type_asSecurityGroupIdSet.py
View file @
055905c0
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment