Commit e3a66511 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_hypermedia: Only list valid validated hosting subscriptions

parent 35627702
...@@ -84,6 +84,7 @@ result_dict = {\n ...@@ -84,6 +84,7 @@ result_dict = {\n
for sql_obj in context.getPortalObject().portal_catalog(\n for sql_obj in context.getPortalObject().portal_catalog(\n
portal_type="Hosting Subscription",\n portal_type="Hosting Subscription",\n
default_destination_section_uid=context.getUid(),\n default_destination_section_uid=context.getUid(),\n
validation_state="validated"\n
):\n ):\n
obj = sql_obj.getObject()\n obj = sql_obj.getObject()\n
result_dict[\'_links\'][\'content\'].append({\n result_dict[\'_links\'][\'content\'].append({\n
......
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