def _extend_nodelist(extend_node):
    # we don't support variable extensions (1.3 way)
    if is_variable_extend_node(extend_node):
        return []
    blocks = extend_node.blocks
    _extend_blocks(extend_node, blocks)
    found = []

    for block in blocks.values():
        found += _scan_namespaces(block.nodelist, block)

    parent_template = extend_node.get_parent(get_context())
    # if this is the topmost template, check for namespaces outside of blocks
    if not _get_nodelist(parent_template).get_nodes_by_type(ExtendsNode):
        found += _scan_namespaces(
            _get_nodelist(parent_template),
            None
        )
    else:
        found += _scan_namespaces(
            _get_nodelist(parent_template),
            extend_node
        )
    return found
Establish session with the server.
dataset/ETHPy150Open ojii/django-sekizai/sekizai/helpers.py/_extend_nodelist--crossover with--dataset/ETHPy150Open openstack/oslo.vmware/oslo_vmware/api.py/VMwareAPISession._create_session