Commit 83a17775 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: use Project_getSoftwareProductPredicateList to find Software Product

parent a085142f
......@@ -115,7 +115,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(x.getTitle(), x.getUid()) for x in context.Project_getProductList()]</string> </value>
<value> <string>python: [(x.getTitle(), x.getUid()) for x in list(set([x.getObject().getParentValue().getResourceValue() for x in context.Project_getSoftwareProductPredicateList()]))]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -115,7 +115,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(x.getTitle(x.getUrlString()), x.getUrlString()) for x in context.getPortalObject().portal_catalog(portal_type=\'Software Product Release Variation\', parent_uid=request.get(\'field_your_aggregate_uid\'))]</string> </value>
<value> <string>python: [(x.getTitle(x.getUrlString()), x.getUrlString()) for x in list(set([x.getSoftwareReleaseValue() for x in context.Project_getSoftwareProductPredicateList(software_product=context.getPortalObject().portal_catalog.getResultValue(portal_type=\'Software Product\', uid=request.get(\'field_your_aggregate_uid\')))]))]</string> </value>
</item>
</dictionary>
</pickle>
......
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