def getScripts(self): scripts = [] for scriptNode in self.portNode.getElementsByTagName('script'): scr = Script.Script(scriptNode) scripts.append(scr) return scripts
def getHostScripts(self): scripts = [] for hostscriptNode in self.hostNode.getElementsByTagName('hostscript'): for scriptNode in hostscriptNode.getElementsByTagName('script'): scr = Script.Script(scriptNode) scripts.append(scr) return scripts