web/impl/lxml_toolkit_object.py
def find(self, query, **kwargs):
        """ Get the node(s) matching the query"""
        nodes = self.widget.xpath(query, **kwargs)
        if not nodes:
            return []
        matches = []
        for node in nodes:
            aref = CACHE.get(node.attrib.get('ref'))
            obj = aref() if aref else None
            if obj is None:
                continue
            matches.append(obj)
        return matches
def find(self, query, **kwargs):
        """ Get the node(s) matching the query"""
        nodes = self.widget.xpath(query, **kwargs)
        if not nodes:
            return []
        matches = []
        for node in nodes:
            aref = CACHE.get(node.attrib.get('ref'))
            obj = aref() if aref else None
            if obj is None:
                continue
            matches.append(obj)
        return matches
Get the node(s) matching the query