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