MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / getchild

Method getchild

suds/resolver.py:297–303  ·  view source on GitHub ↗

get a child by name

(self, name, parent)

Source from the content-addressed store, hash-verified

295 return len(self.stack)
296
297 def getchild(self, name, parent):
298 """ get a child by name """
299 log.debug('searching parent (%s) for (%s)', Repr(parent), name)
300 if name.startswith('@'):
301 return parent.get_attribute(name[1:])
302 else:
303 return parent.get_child(name)
304
305
306class NodeResolver(TreeResolver):

Callers 3

findMethod · 0.80
findattrMethod · 0.80
findMethod · 0.80

Calls 3

ReprClass · 0.90
get_attributeMethod · 0.45
get_childMethod · 0.45

Tested by

no test coverage detected