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

Method __init__

suds/wsdl.py:425–436  ·  view source on GitHub ↗

@param root: An XML root element. @type root: L{Element} @param definitions: A definitions object. @type definitions: L{Definitions}

(self, root, definitions)

Source from the content-addressed store, hash-verified

423 """
424
425 def __init__(self, root, definitions):
426 """
427 @param root: An XML root element.
428 @type root: L{Element}
429 @param definitions: A definitions object.
430 @type definitions: L{Definitions}
431 """
432 NamedObject.__init__(self, root, definitions)
433 self.parts = []
434 for p in root.getChildren('part'):
435 part = Part(p, definitions)
436 self.parts.append(part)
437
438 def __gt__(self, other):
439 return isinstance(other, (Import, Types))

Callers

nothing calls this directly

Calls 4

PartClass · 0.85
getChildrenMethod · 0.80
__init__Method · 0.45
appendMethod · 0.45

Tested by

no test coverage detected