Commit 7dafa957 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: only search validated software product/release

parent 7f2bb3c8
......@@ -6,11 +6,18 @@ image_url = "gadget_slapos_panel.png"
release = portal.portal_catalog.getResultValue(
portal_type="Software Release",
url_string=url_string,
follow_up__uid=context.getFollowUpUid()
follow_up__uid=context.getFollowUpUid(),
validation_state=['shared', 'shared_alive',
'released', 'released_alive',
'published', 'published_alive']
)
if release is not None:
software_product = release.getAggregateValue(
checked_permission='Access contents information')
if software_product is not None:
if software_product.getValidationState() not in ['validated', 'published']:
software_product = None
if software_product is not None:
product_image_url = software_product.getDefaultImageAbsoluteUrl()
if product_image_url:
......
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