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

Method import_schema

suds/wsdl.py:332–340  ·  view source on GitHub ↗

import schema as content

(self, definitions, d)

Source from the content-addressed store, hash-verified

330 log.debug('imported (WSDL):\n%s', d)
331
332 def import_schema(self, definitions, d):
333 """ import schema as <types/> content """
334 if not len(definitions.types):
335 types = Types.create(definitions)
336 definitions.types.append(types)
337 else:
338 types = definitions.types[-1]
339 types.root.append(d.root)
340 log.debug('imported (XSD):\n%s', d.root)
341
342 def __gt__(self, other):
343 return False

Callers 1

loadMethod · 0.95

Calls 2

createMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected