MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / qualify

Method qualify

suds/resolver.py:183–198  ·  view source on GitHub ↗

Qualify the name as either: - plain name - ns prefixed name (eg: ns0:Person) - fully ns qualified name (eg: {http://myns-uri}Person) @param name: The name of an object in the schema. @type name: str @return: A qualifed name. @rty

(self, name)

Source from the content-addressed store, hash-verified

181 return result
182
183 def qualify(self, name):
184 """
185 Qualify the name as either:
186 - plain name
187 - ns prefixed name (eg: ns0:Person)
188 - fully ns qualified name (eg: {http://myns-uri}Person)
189 @param name: The name of an object in the schema.
190 @type name: str
191 @return: A qualifed name.
192 @rtype: qname
193 """
194 m = self.altp.match(name)
195 if m is None:
196 return qualify(name, self.wsdl.root, self.wsdl.tns)
197 else:
198 return (m.group(4), m.group(2))
199
200 def split(self, s):
201 """

Callers 1

rootMethod · 0.95

Calls 2

qualifyFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected