Commit 25a90384 authored by Romain Courteaud's avatar Romain Courteaud

getObject only once.

parent 1da175d8
...@@ -71,11 +71,11 @@ for hosting_subscription in portal.portal_catalog(\n ...@@ -71,11 +71,11 @@ for hosting_subscription in portal.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
):\n ):\n
hosting_subscription = hosting_subscription.getObject()\n
add_kw = dict(\n add_kw = dict(\n
title=hosting_subscription.getTitle(),\n title=hosting_subscription.getTitle(),\n
aggregate=hosting_subscription.getRelativeUrl()\n aggregate=hosting_subscription.getRelativeUrl()\n
)\n )\n
hosting_subscription = hosting_subscription.getObject()\n
add_kw_list.append((add_kw, hosting_subscription.getPath()))\n add_kw_list.append((add_kw, hosting_subscription.getPath()))\n
if hosting_subscription.getSlapState() == \'destroy_requested\':\n if hosting_subscription.getSlapState() == \'destroy_requested\':\n
remove_hosting_list.append((hosting_subscription.getRelativeUrl(),\n remove_hosting_list.append((hosting_subscription.getRelativeUrl(),\n
......
219 220
\ No newline at end of file \ No newline at end of file
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