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

Method build_schema

suds/wsdl.py:209–223  ·  view source on GitHub ↗

Process L{Types} objects and create the schema collection

(self)

Source from the content-addressed store, hash-verified

207 c.resolve(self)
208
209 def build_schema(self):
210 """ Process L{Types} objects and create the schema collection """
211 container = SchemaCollection(self)
212 for t in [t for t in self.types if t.local()]:
213 for root in t.contents():
214 schema = Schema(root, self.url, self.options, container)
215 container.add(schema)
216 if not len(container): # empty
217 root = Element.buildPath(self.root, 'types/schema')
218 schema = Schema(root, self.url, self.options, container)
219 container.add(schema)
220 self.schema = container.load(self.options)
221 for s in [t.schema() for t in self.types if t.imported()]:
222 self.schema.merge(s)
223 return self.schema
224
225 def add_methods(self, service):
226 """ Build method view for service """

Callers 1

__init__Method · 0.95

Calls 10

addMethod · 0.95
loadMethod · 0.95
SchemaCollectionClass · 0.90
SchemaClass · 0.90
localMethod · 0.80
contentsMethod · 0.80
buildPathMethod · 0.80
importedMethod · 0.80
schemaMethod · 0.45
mergeMethod · 0.45

Tested by

no test coverage detected