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

Method setdefault

suds/mx/appender.py:141–150  ·  view source on GitHub ↗

Set the value of the I{node} to a default value. @param node: A I{nil} node. @type node: L{Element} @param content: The content for which proccessing has ended. @type content: L{Object} @return: The default.

(self, node, content)

Source from the content-addressed store, hash-verified

139 self.marshaller.setnil(node, content)
140
141 def setdefault(self, node, content):
142 """
143 Set the value of the I{node} to a default value.
144 @param node: A I{nil} node.
145 @type node: L{Element}
146 @param content: The content for which proccessing has ended.
147 @type content: L{Object}
148 @return: The default.
149 """
150 return self.marshaller.setdefault(node, content)
151
152 def optional(self, content):
153 """

Callers 1

appendMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected