Commit 435b9927 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: ExactMatch

parent 4ab9667c
...@@ -2,7 +2,7 @@ portal = context.getPortalObject() ...@@ -2,7 +2,7 @@ portal = context.getPortalObject()
return portal.portal_catalog.getResultValue( return portal.portal_catalog.getResultValue(
portal_type='Support Request', portal_type='Support Request',
title=title, title={'query': title, 'key': 'ExactMatch'},
simulation_state=["validated", "submitted", "suspended"], simulation_state=["validated", "submitted", "suspended"],
causality__uid=context.getUid(), causality__uid=context.getUid(),
) )
...@@ -60,8 +60,9 @@ for local_instance in local_instance_list: ...@@ -60,8 +60,9 @@ for local_instance in local_instance_list:
validation_state='validated', validation_state='validated',
destination_section__uid=remote_person.getUid(), destination_section__uid=remote_person.getUid(),
follow_up__uid=remote_project.getUid(), follow_up__uid=remote_project.getUid(),
title='_remote_%s_%s' % (local_instance.getFollowUpReference(), title={'query': '_remote_%s_%s' % (local_instance.getFollowUpReference(),
local_instance.getReference()) local_instance.getReference()),
'key': 'ExactMatch'}
) )
if remote_instance_tree is not None: if remote_instance_tree is not None:
......
...@@ -26,7 +26,7 @@ if url_string: ...@@ -26,7 +26,7 @@ if url_string:
software_type = portal.portal_catalog.getResultValue( software_type = portal.portal_catalog.getResultValue(
parent_uid=software_product.getUid(), parent_uid=software_product.getUid(),
title=context.getSourceReference(), title={'query': context.getSourceReference(), 'key': 'ExactMatch'},
portal_type="Software Product Type Variation" portal_type="Software Product Type Variation"
) )
......
...@@ -31,7 +31,7 @@ if len(project_list) != 1: ...@@ -31,7 +31,7 @@ if len(project_list) != 1:
compute_node_portal_type = "Compute Node" compute_node_portal_type = "Compute Node"
compute_node_list = portal.portal_catalog.portal_catalog( compute_node_list = portal.portal_catalog.portal_catalog(
portal_type=compute_node_portal_type, portal_type=compute_node_portal_type,
title=compute_node_title, title={'query': compute_node_title, 'key': 'ExactMatch'},
follow_up__uid=project_list[0].getUid(), follow_up__uid=project_list[0].getUid(),
limit=2 limit=2
) )
......
...@@ -31,7 +31,7 @@ if len(project_list) != 1: ...@@ -31,7 +31,7 @@ if len(project_list) != 1:
computer_network_portal_type = "Computer Network" computer_network_portal_type = "Computer Network"
computer_network_list = portal.portal_catalog.portal_catalog( computer_network_list = portal.portal_catalog.portal_catalog(
portal_type=computer_network_portal_type, portal_type=computer_network_portal_type,
title=computer_network_title, title={'query': computer_network_title, 'key': 'ExactMatch'},
follow_up__uid=project_list[0].getUid(), follow_up__uid=project_list[0].getUid(),
#validation_state="validated", #validation_state="validated",
limit=2) limit=2)
......
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