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

Method append_attributes

suds/umx/core.py:113–124  ·  view source on GitHub ↗

Append attribute nodes into L{Content.data}. Attributes in the I{schema} or I{xml} namespaces are skipped. @param content: The current content being unmarshalled. @type content: L{Content}

(self, content)

Source from the content-addressed store, hash-verified

111 return content.text
112
113 def append_attributes(self, content):
114 """
115 Append attribute nodes into L{Content.data}.
116 Attributes in the I{schema} or I{xml} namespaces are skipped.
117 @param content: The current content being unmarshalled.
118 @type content: L{Content}
119 """
120 attributes = AttrList(content.node.attributes)
121 for attr in attributes.real():
122 name = attr.name
123 value = attr.value
124 self.append_attribute(name, value, content)
125
126 def append_attribute(self, name, value, content):
127 """

Callers 1

appendMethod · 0.95

Calls 3

realMethod · 0.95
append_attributeMethod · 0.95
AttrListClass · 0.90

Tested by

no test coverage detected