def cleanupnode(self, node): if node.get("id") == "batch_system": fnode = node.find(".//file") node.remove(fnode) gnode = node.find(".//group") node.remove(gnode) vnode = node.find(".//values") if vnode is not None: node.remove(vnode) else: node = EnvBase.cleanupnode(self, node) return node
def cleanupnode(self, node): if self.get(node, "id") == "batch_system": fnode = self.get_child(name="file", root=node) self.remove_child(fnode, root=node) gnode = self.get_child(name="group", root=node) self.remove_child(gnode, root=node) vnode = self.get_optional_child(name="values", root=node) if vnode is not None: self.remove_child(vnode, root=node) else: node = EnvBase.cleanupnode(self, node) return node