Commit 2362dc69 authored by Romain Courteaud's avatar Romain Courteaud

Only fetch partition with open allocation_scope and capacity_scope

parent 570ba658
......@@ -113,6 +113,9 @@ for base_category in computer_base_category_list:\n
else:\n
query_kw["%s_uid" % base_category] = category.getUid()\n
\n
query_kw["capacity_scope_uid"] = context.getPortalObject().portal_categories.capacity_scope.open.getUid()\n
query_kw["allocation_scope_uid"] = context.getPortalObject().portal_categories.allocation_scope.open.getUid()\n
\n
if filter_kw.keys():\n
# XXX Drop all unexpected keys\n
query_kw["uid"] = "-1"\n
......
476
\ No newline at end of file
477
\ 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