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

Method mktns

suds/xsd/schema.py:232–242  ·  view source on GitHub ↗

Make the schema's target namespace. @return: The namespace representation of the schema's targetNamespace value. @rtype: (prefix, uri)

(self)

Source from the content-addressed store, hash-verified

230 log.debug('dereferenced:\n%s', self)
231
232 def mktns(self):
233 """
234 Make the schema's target namespace.
235 @return: The namespace representation of the schema's
236 targetNamespace value.
237 @rtype: (prefix, uri)
238 """
239 tns = [None, self.root.get('targetNamespace')]
240 if tns[1] is not None:
241 tns[0] = self.root.findPrefix(tns[1])
242 return tuple(tns)
243
244 def build(self):
245 """

Callers 1

__init__Method · 0.95

Calls 2

findPrefixMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected