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

Method getChildren

suds/sax/element.py:473–491  ·  view source on GitHub ↗

Get a list of children by (optional) name and/or (optional) namespace. @param name: The name of a child element (may contain prefix). @type name: basestring @param ns: An optional namespace used to match the child. @type ns: (I{prefix}, I{name}) @retu

(self, name=None, ns=None)

Source from the content-addressed store, hash-verified

471 return result
472
473 def getChildren(self, name=None, ns=None):
474 """
475 Get a list of children by (optional) name and/or (optional) namespace.
476 @param name: The name of a child element (may contain prefix).
477 @type name: basestring
478 @param ns: An optional namespace used to match the child.
479 @type ns: (I{prefix}, I{name})
480 @return: The list of matching children.
481 @rtype: [L{Element},...]
482 """
483 if ns is None:
484 if name is None:
485 return self.children
486 prefix, name = splitPrefix(name)
487 if prefix is None:
488 ns = None
489 else:
490 ns = self.resolvePrefix(prefix)
491 return [c for c in self.children if c.match(name, ns)]
492
493 def detachChildren(self):
494 """

Callers 11

add_operationsMethod · 0.95
childrenAtPathMethod · 0.95
add_childrenMethod · 0.80
contentsMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__childrenAtPathMethod · 0.80
applyatyMethod · 0.80
autoblendMethod · 0.80
buildMethod · 0.80

Calls 3

resolvePrefixMethod · 0.95
splitPrefixFunction · 0.90
matchMethod · 0.45

Tested by

no test coverage detected