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

Method encode

suds/mx/encoded.py:82–93  ·  view source on GitHub ↗
(self, node, content)

Source from the content-addressed store, hash-verified

80 child.set(name, value)
81
82 def encode(self, node, content):
83 if content.type.any():
84 Typer.auto(node, content.value)
85 return
86 if content.real.any():
87 Typer.auto(node, content.value)
88 return
89 ns = None
90 name = content.real.name
91 if self.xstq:
92 ns = content.real.namespace()
93 Typer.manual(node, name, ns)
94
95 def cast(self, content):
96 """

Callers

nothing calls this directly

Calls 4

autoMethod · 0.80
manualMethod · 0.80
anyMethod · 0.45
namespaceMethod · 0.45

Tested by

no test coverage detected