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

Method bodycontent

suds/bindings/rpc.py:48–60  ·  view source on GitHub ↗
(self, method, args, kwargs)

Source from the content-addressed store, hash-verified

46 return env
47
48 def bodycontent(self, method, args, kwargs):
49 n = 0
50 root = self.method(method)
51 for pd in self.param_defs(method):
52 if n < len(args):
53 value = args[n]
54 else:
55 value = kwargs.get(pd[0])
56 p = self.mkparam(method, pd, value)
57 if p is not None:
58 root.append(p)
59 n += 1
60 return root
61
62 def replycontent(self, method, body):
63 return body[0].children

Callers

nothing calls this directly

Calls 5

methodMethod · 0.95
param_defsMethod · 0.95
getMethod · 0.45
mkparamMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected