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
18
Merge Requests
18
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
nexedi
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
=
{
news_dict
=
{
"portal_type"
:
context
.
getPortalType
(),
"portal_type"
:
context
.
getPortalType
(),
"reference"
:
context
.
getReference
(),
"reference"
:
context
.
getReference
(),
...
@@ -12,6 +14,10 @@ elif context.getSlapState() == 'destroy_requested':
...
@@ -12,6 +14,10 @@ elif context.getSlapState() == 'destroy_requested':
elif
context
.
getRootSlave
():
elif
context
.
getRootSlave
():
news_dict
[
"is_slave"
]
=
1
news_dict
[
"is_slave"
]
=
1
else
:
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
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