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

Method replylist

suds/bindings/binding.py:186–204  ·  view source on GitHub ↗

Construct a I{list} reply. This method is called when it has been detected that the reply is a list. @param rt: The return I{type}. @type rt: L{suds.xsd.sxbase.SchemaObject} @param nodes: A collection of XML nodes. @type nodes: [L{Element

(self, rt, nodes)

Source from the content-addressed store, hash-verified

184 return self
185
186 def replylist(self, rt, nodes):
187 """
188 Construct a I{list} reply. This method is called when it has been
189 detected
190 that the reply is a list.
191 @param rt: The return I{type}.
192 @type rt: L{suds.xsd.sxbase.SchemaObject}
193 @param nodes: A collection of XML nodes.
194 @type nodes: [L{Element},...]
195 @return: A list of I{unmarshalled} objects.
196 @rtype: [L{Object},...]
197 """
198 result = []
199 resolved = rt.resolve(nobuiltin=True)
200 unmarshaller = self.unmarshaller()
201 for node in nodes:
202 sobject = unmarshaller.process(node, resolved)
203 result.append(sobject)
204 return result
205
206 def replycomposite(self, rtypes, nodes):
207 """

Callers 1

get_replyMethod · 0.95

Calls 4

unmarshallerMethod · 0.95
resolveMethod · 0.45
processMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected