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

Method append

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

Source from the content-addressed store, hash-verified

188 """
189
190 def append(self, parent, content):
191 if content.tag.startswith('_'):
192 attr = content.tag[1:]
193 value = tostr(content.value)
194 if value:
195 parent.set(attr, value)
196 else:
197 child = self.node(content)
198 child.setText(tostr(content.value))
199 parent.append(child)
200
201
202class NoneAppender(Appender):

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