Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 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)
Exemplo n.º 6
0
 def handle_cleaner_option_warning(self, warning):
     """<warning> element under <option>"""
     self.option_warning = _(getText(warning.childNodes))
     self.xlate_cb(self.option_warning)
Exemplo n.º 7
0
 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)
Exemplo n.º 8
0
 def handle_cleaner_description(self, description):
     """<description> element under <cleaner>"""
     self.cleaner.description = _(getText(description.childNodes))
     self.xlate_cb(self.cleaner.description)
Exemplo n.º 9
0
 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)
Exemplo n.º 10
0
 def handle_cleaner_option_warning(self, warning):
     """<warning> element under <option>"""
     self.option_warning = _(getText(warning.childNodes))
     self.xlate_cb(self.option_warning)
Exemplo n.º 11
0
 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)
Exemplo n.º 12
0
 def handle_cleaner_description(self, description):
     """<description> element under <cleaner>"""
     self.cleaner.description = _(getText(description.childNodes))
     self.xlate_cb(self.cleaner.description)