Commit bbfbd00b authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: only check validated Software Instance

parent c9050671
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
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