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

Method find

suds/resolver.py:46–67  ·  view source on GitHub ↗

Get the definition object for the schema object by name. @param name: The name of a schema object. @type name: basestring @param resolved: A flag indicating that the fully resolved type should be returned. @type resolved: boolean @return:

(self, name, resolved=True)

Source from the content-addressed store, hash-verified

44 self.schema = schema
45
46 def find(self, name, resolved=True):
47 """
48 Get the definition object for the schema object by name.
49 @param name: The name of a schema object.
50 @type name: basestring
51 @param resolved: A flag indicating that the fully resolved type
52 should be returned.
53 @type resolved: boolean
54 @return: The found schema I{type}
55 @rtype: L{xsd.sxbase.SchemaObject}
56 """
57 log.debug('searching schema for (%s)', name)
58 qref = qualify(name, self.schema.root, self.schema.tns)
59 query = BlindQuery(qref)
60 result = query.execute(self.schema)
61 if result is None:
62 log.error('(%s) not-found', name)
63 return None
64 log.debug('found (%s) as (%s)', name, Repr(result))
65 if resolved:
66 result = result.resolve()
67 return result
68
69
70class PathResolver(Resolver):

Callers 15

load_extensionFunction · 0.45
__processPlaceholdersMethod · 0.45
runMethod · 0.45
finderMethod · 0.45
runMethod · 0.45
jquery.jsFile · 0.45
kFunction · 0.45
bootstrap.jsFile · 0.45
CarouselFunction · 0.45
ModalFunction · 0.45
bootstrap.min.jsFile · 0.45
oFunction · 0.45

Calls 5

executeMethod · 0.95
BlindQueryClass · 0.90
ReprClass · 0.90
qualifyFunction · 0.85
resolveMethod · 0.45

Tested by

no test coverage detected