Пример #1
0
    def save_config(self):
        def error_callback(error, string):
            print string

        configfile.save_global_config(self.config, 'maketorrent',
                                      error_callback, ui_options)
Пример #2
0
 def _dump_global_config(self):
     # BUG: we can save to different sections later
     section = 'bittorrent'
     configfile.save_global_config(self.config, section,
                                   lambda *e: self.logger.error(*e))