MCPcopy Index your code
hub / github.com/pyload/pyload / parseNode

Method parseNode

module/gui/XMLParser.py:55–71  ·  view source on GitHub ↗
(self, node, ret_type="list")

Source from the content-addressed store, hash-verified

53 return content
54
55 def parseNode(self, node, ret_type="list"):
56 if ret_type == "dict":
57 childNodes = {}
58 else:
59 childNodes = []
60 child = node.firstChild()
61 while True:
62 n = child.toElement()
63 if n.isNull():
64 break
65 else:
66 if ret_type == "dict":
67 childNodes[str(n.tagName())] = n
68 else:
69 childNodes.append(n)
70 child = child.nextSibling()
71 return childNodes

Callers 4

getConnectionsMethod · 0.80
slotSaveConnectionMethod · 0.80
slotRemoveConnectionMethod · 0.80
restoreMainWindowMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected