Add a section (cleaners)
(self, cleaner_id, name)
| 170 | cb_progress(1.0 * section_done_count / section_total_count) |
| 171 | |
| 172 | def add_section(self, cleaner_id, name): |
| 173 | """Add a section (cleaners)""" |
| 174 | self.cleaner_ids.append(cleaner_id) |
| 175 | self.cleaners[cleaner_id] = Cleaner.Cleaner() |
| 176 | self.cleaners[cleaner_id].id = cleaner_id |
| 177 | self.cleaners[cleaner_id].name = name |
| 178 | assert name.strip() == name |
| 179 | self.cleaners[cleaner_id].description = _('Imported from winapp2.ini') |
| 180 | # The detect() function in this module effectively does what |
| 181 | # auto_hide() does, so this avoids redundant, slow processing. |
| 182 | self.cleaners[cleaner_id].auto_hide = _always_false |
| 183 | |
| 184 | def section_to_cleanerid(self, langsecref): |
| 185 | """Given a langsecref (or section name), find the internal |
no outgoing calls