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

Method append

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

Source from the content-addressed store, hash-verified

249 """
250
251 def append(self, parent, content):
252 d = content.value
253 if self.optional(content) and len(d) == 0:
254 return
255 child = self.node(content)
256 parent.append(child)
257 for item in d.items():
258 cont = Content(tag=item[0], value=item[1])
259 Appender.append(self, child, cont)
260
261
262class ElementWrapper(Element):

Callers

nothing calls this directly

Calls 5

ContentClass · 0.90
optionalMethod · 0.45
nodeMethod · 0.45
appendMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected