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

Method load

suds/xsd/schema.py:76–97  ·  view source on GitHub ↗

Load the schema objects for the root nodes. - de-references schemas - merge schemas @param options: An options dictionary. @type options: L{options.Options} @return: The merged schema. @rtype: L{Schema}

(self, options)

Source from the content-addressed store, hash-verified

74 existing.root.nsprefixes.update(schema.root.nsprefixes)
75
76 def load(self, options):
77 """
78 Load the schema objects for the root nodes.
79 - de-references schemas
80 - merge schemas
81 @param options: An options dictionary.
82 @type options: L{options.Options}
83 @return: The merged schema.
84 @rtype: L{Schema}
85 """
86 if options.autoblend:
87 self.autoblend()
88 for child in self.children:
89 child.build()
90 for child in self.children:
91 child.open_imports(options)
92 for child in self.children:
93 child.dereference()
94 log.debug('loaded:\n%s', self)
95 merged = self.merge()
96 log.debug('MERGED:\n%s', merged)
97 return merged
98
99 def autoblend(self):
100 """

Callers 1

build_schemaMethod · 0.95

Calls 5

autoblendMethod · 0.95
mergeMethod · 0.95
dereferenceMethod · 0.80
buildMethod · 0.45
open_importsMethod · 0.45

Tested by

no test coverage detected