Add item/value pair for config_type and section.
(self, config_type, section, item, value)
| 806 | self.pages.append(self[config_type]) |
| 807 | |
| 808 | def add_option(self, config_type, section, item, value): |
| 809 | "Add item/value pair for config_type and section." |
| 810 | page = self[config_type] |
| 811 | value = str(value) # Make sure we use a string. |
| 812 | if section not in page: |
| 813 | page[section] = {} |
| 814 | page[section][item] = value |
| 815 | |
| 816 | @staticmethod |
| 817 | def save_option(config_type, section, item, value): |