def __init__(self, parent, name, combobox, scan=False): SoftwareObject.__init__(self, parent, name, combobox) if scan: self.instantiate_object() else: if not any(element.attrib['Name']== self.name for element in self.parent): self.create_element('category')
def __init__(self, features, name, combobox, scan=False): SoftwareObject.__init__(self, features, name, combobox) self.dependencies = {} self.software_categories = {} if scan: self.instantiate_object() else: if not any(element.find("Name").text == self.name for element in self.parent): self.create_element('feature')