Commit 76afe480 authored by Romain Courteaud's avatar Romain Courteaud

Fix query usage.

parent 460966ef
...@@ -105,11 +105,11 @@ request_hosting_subscription_list = portal.portal_catalog(\n ...@@ -105,11 +105,11 @@ request_hosting_subscription_list = portal.portal_catalog(\n
portal_type=hosting_subscription_portal_type,\n portal_type=hosting_subscription_portal_type,\n
title={\'query\': software_title, \'key\': \'ExactMatch\'},\n title={\'query\': software_title, \'key\': \'ExactMatch\'},\n
validation_state="validated",\n validation_state="validated",\n
default_destination_section=person.getRelativeUrl(),\n default_destination_section_uid=person.getUid(),\n
limit=2,\n limit=2,\n
)\n )\n
if len(request_hosting_subscription_list) > 1:\n if len(request_hosting_subscription_list) > 1:\n
raise NotImplementedError, "Too many hosting subscription %s found" % software_title\n raise NotImplementedError, "Too many hosting subscription %s found %s" % (software_title, [x.path for x in request_hosting_subscription_list])\n
elif len(request_hosting_subscription_list) == 1:\n elif len(request_hosting_subscription_list) == 1:\n
request_hosting_subscription = request_hosting_subscription_list[0].getObject()\n request_hosting_subscription = request_hosting_subscription_list[0].getObject()\n
if (request_hosting_subscription.getSlapState() == "destroy_requested") or \\\n if (request_hosting_subscription.getSlapState() == "destroy_requested") or \\\n
......
771 772
\ No newline at end of file \ No newline at end of file
...@@ -3,7 +3,6 @@ portal_alarms/confirm_ordered_sale_order ...@@ -3,7 +3,6 @@ portal_alarms/confirm_ordered_sale_order
portal_alarms/confirm_planned_sale_invoice_transaction portal_alarms/confirm_planned_sale_invoice_transaction
portal_alarms/deliver_subscription_sale_packing_list portal_alarms/deliver_subscription_sale_packing_list
portal_alarms/free_computer_partition portal_alarms/free_computer_partition
portal_alarms/garbage_collect_destroyed_root_tree
portal_alarms/stop_confirmed_sale_invoice_transaction portal_alarms/stop_confirmed_sale_invoice_transaction
portal_alarms/vifib_bang_selenium_tester_instance portal_alarms/vifib_bang_selenium_tester_instance
portal_alarms/vifib_cancel_destroy_partition portal_alarms/vifib_cancel_destroy_partition
......
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