MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / find

Method find

suds/xsd/sxbase.py:657–672  ·  view source on GitHub ↗

Traverse the tree looking for matches. @param node: A node to match on. @type node: L{SchemaObject} @param list: A list to fill. @type list: list

(self, node, list)

Source from the content-addressed store, hash-verified

655 self.limit = limit
656
657 def find(self, node, list):
658 """
659 Traverse the tree looking for matches.
660 @param node: A node to match on.
661 @type node: L{SchemaObject}
662 @param list: A list to fill.
663 @type list: list
664 """
665 if self.matcher.match(node):
666 list.append(node)
667 self.limit -= 1
668 if self.limit == 0:
669 return
670 for c in node.rawchildren:
671 self.find(c, list)
672 return self

Callers 6

qrefMethod · 0.95
startMethod · 0.45
startMethod · 0.45
findMethod · 0.45
__deepsearchMethod · 0.45
__deepsearchMethod · 0.45

Calls 2

matchMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected