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

Method start

suds/mx/encoded.py:45–60  ·  view source on GitHub ↗
(self, content)

Source from the content-addressed store, hash-verified

43 """
44
45 def start(self, content):
46 #
47 # For soap encoded arrays, the 'aty' (array type) information
48 # is extracted and added to the 'content'. Then, the content.value
49 # is replaced with an object containing an 'item=[]' attribute
50 # containing values that are 'typed' suds objects.
51 #
52 start = Literal.start(self, content)
53 if start and isinstance(content.value, (list, tuple)):
54 resolved = content.type.resolve()
55 for c in resolved:
56 if hasattr(c[0], 'aty'):
57 content.aty = (content.tag, c[0].aty)
58 self.cast(content)
59 break
60 return start
61
62 def end(self, parent, content):
63 #

Callers

nothing calls this directly

Calls 2

castMethod · 0.95
resolveMethod · 0.45

Tested by

no test coverage detected