Commit 900cee20 authored by Romain Courteaud's avatar Romain Courteaud

No need to access Computer network to filter.

parent c771e9d9
......@@ -85,11 +85,7 @@ if "instance_guid" in filter_kw:\n
\n
if \'network_guid\' in filter_kw:\n
network_guid = filter_kw.pop(\'network_guid\')\n
network = context.getPortalObject().portal_catalog.getResultValue(portal_type=\'Computer Network\', reference=network_guid)\n
if network is None:\n
query_kw["uid"] = "-1"\n
else:\n
query_kw["subordination_uid"] = network.getUid()\n
query_kw["default_subordination_reference"] = network_guid\n
\n
computer_base_category_list = [\n
\'group\',\n
......
227
\ No newline at end of file
228
\ 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