def handle_cleaner_running(self, running_elements): """<running> element under <cleaner>""" # example: <running type="command">opera</running> for running in running_elements: detection_type = running.getAttribute('type') value = getText(running.childNodes) self.cleaner.add_running(detection_type, value)
def handle_cleaner_option_label(self, label): """<label> element under <option>""" self.option_name = _(getText(label.childNodes)) translate = label.getAttribute('translate') translators = label.getAttribute('translators') if not translate or boolstr_to_bool(translate): self.xlate_cb(self.option_name, translators)
def handle_cleaner_label(self, label): """<label> element under <cleaner>""" self.cleaner.name = _(getText(label.childNodes)) translate = label.getAttribute('translate') if translate and boolstr_to_bool(translate): self.xlate_cb(self.cleaner.name)
def handle_cleaner_option_warning(self, warning): """<warning> element under <option>""" self.option_warning = _(getText(warning.childNodes)) self.xlate_cb(self.option_warning)
def handle_cleaner_option_description(self, description): """<description> element under <option>""" self.option_description = _(getText(description.childNodes)) self.xlate_cb(self.option_description) translators = description.getAttribute('translators') self.xlate_cb(self.option_description, translators)
def handle_cleaner_description(self, description): """<description> element under <cleaner>""" self.cleaner.description = _(getText(description.childNodes)) self.xlate_cb(self.cleaner.description)
def handle_cleaner_option_description(self, description): """<description> element under <option>""" self.option_description = _(getText(description.childNodes)) translators = description.getAttribute('translators') self.xlate_cb(self.option_description, translators)