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

Method update

suds/bindings/multiref.py:57–70  ·  view source on GitHub ↗

Update the specified I{node} by replacing the I{multiref} references with the contents of the referenced nodes and remove the I{href} attribute. @param node: A node to update. @type node: L{Element} @return: The updated node @rtype: L{Element}

(self, node)

Source from the content-addressed store, hash-verified

55 return body
56
57 def update(self, node):
58 """
59 Update the specified I{node} by replacing the I{multiref} references
60 with the contents of the referenced nodes and remove the I{href}
61 attribute.
62 @param node: A node to update.
63 @type node: L{Element}
64 @return: The updated node
65 @rtype: L{Element}
66 """
67 self.replace_references(node)
68 for c in node.children:
69 self.update(c)
70 return node
71
72 def replace_references(self, node):
73 """

Callers 5

processMethod · 0.95
__init__Method · 0.45
sendMethod · 0.45
__deepcopy__Method · 0.45
addMethod · 0.45

Calls 1

replace_referencesMethod · 0.95

Tested by

no test coverage detected