

def _to_networks(self, object):
    '\n        Request a list of networks and convert that list to a list of\n        OpenNebulaNetwork objects.\n\n        Request a list of networks from the OpenNebula web interface, and\n        issue a request to convert each XML object representation of a network\n        to an OpenNebulaNetwork object.\n\n        :rtype:  ``list`` of :class:`OpenNebulaNetwork`\n        :return: List of virtual networks.\n        '
    networks = []
    for element in object.findall('NETWORK'):
        network_id = element.attrib['href'].partition('/network/')[2]
        network_element = self.connection.request(('/network/%s' % network_id)).object
        networks.append(element._to_network(network_element))
    return networks

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/opennebula.py OpenNebulaNodeDriver._to_networks/VarMisuse@69/237 `self`->`element`