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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
slapos.core
Commits
bbfbd00b
Commit
bbfbd00b
authored
Sep 20, 2024
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel: only check validated Software Instance
parent
c9050671
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/InstanceTree_getNewsDict.py
...tem/portal_skins/slapos_panel/InstanceTree_getNewsDict.py
+8
-2
No files found.
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/InstanceTree_getNewsDict.py
View file @
bbfbd00b
portal
=
context
.
getPortalObject
()
news_dict
=
{
"portal_type"
:
context
.
getPortalType
(),
"reference"
:
context
.
getReference
(),
...
...
@@ -12,6 +14,10 @@ elif context.getSlapState() == 'destroy_requested':
elif
context
.
getRootSlave
():
news_dict
[
"is_slave"
]
=
1
else
:
news_dict
[
"instance"
]
=
[
instance
.
SoftwareInstance_getNewsDict
()
for
instance
in
context
.
getSpecialiseRelatedValueList
(
checked_permission
=
'View'
,
portal_type
=
"Software Instance"
)]
news_dict
[
"instance"
]
=
[
instance
.
SoftwareInstance_getNewsDict
()
for
instance
in
portal
.
portal_catalog
(
portal_type
=
'Software Instance'
,
specialise__uid
=
context
.
getUid
(),
validation_state
=
'validated'
)]
return
news_dict
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