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

Class TextAppender

suds/mx/appender.py:302–316  ·  view source on GitHub ↗

An appender for I{Text} values.

Source from the content-addressed store, hash-verified

300
301
302class TextAppender(Appender):
303 """
304 An appender for I{Text} values.
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 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected