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

Method append

suds/mx/appender.py:307–316  ·  view source on GitHub ↗
(self, parent, content)

Source from the content-addressed store, hash-verified

305 """
306
307 def append(self, parent, content):
308 if content.tag.startswith('_'):
309 attr = content.tag[1:]
310 value = tostr(content.value)
311 if value:
312 parent.set(attr, value)
313 else:
314 child = self.node(content)
315 child.setText(content.value)
316 parent.append(child)

Callers

nothing calls this directly

Calls 5

tostrFunction · 0.90
setTextMethod · 0.80
setMethod · 0.45
nodeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected