Commit 2609bce5 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: drop comments

parent 1d0eeff8
...@@ -112,21 +112,6 @@ if 'network_guid' in filter_kw: ...@@ -112,21 +112,6 @@ if 'network_guid' in filter_kw:
network_guid = filter_kw.pop('network_guid') network_guid = filter_kw.pop('network_guid')
query_kw["default_subordination_reference"] = SimpleQuery(default_subordination_reference=network_guid) query_kw["default_subordination_reference"] = SimpleQuery(default_subordination_reference=network_guid)
"""
if 'project_guid' in filter_kw:
# This implementation isn't optimal, as we would prefere place a direct query rather them make an
# direct query.
project_reference = filter_kw.pop("project_guid")
if 'parent_reference' not in query_kw:
# Get Compute Node list from Tracking API
from DateTime import DateTime
project = context.portal_catalog.getResultValue(portal_type="Project", reference=project_reference)
if project is not None:
query_kw["parent_reference"] = SimpleQuery(parent_reference=project.Project_getComputeNodeReferenceList())
"""
if computer_network_query: if computer_network_query:
if query_kw.get("default_subordination_reference"): if query_kw.get("default_subordination_reference"):
query_kw["default_subordination_reference"] = ComplexQuery( query_kw["default_subordination_reference"] = ComplexQuery(
......
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