Пример #1
0
 def saveConfiguration(self, new_config):
     try:
         for c in ['string_options', 'boolean_options']:
             for l in self.config[c].keys():
                 if self.config[c][l] != new_config[c][l]:
                     self.config[c][l] = new_config[c][l]
         GeneralUtilities.getLocalPluginDir(self.name)
         self.config.write()
     except Exception, err:
         logger.error('Could not save the configuration for the ' + self.name + ' plugin.')
         logger.exception(err)
Пример #2
0
 def saveConfiguration(self, new_config):
     try:
         # XXX Figure out why original code only stored these two sections,
         # XXX and not all of them
         for c in ['string_options', 'boolean_options']:
             for l in self.config[c].keys():
                 if self.config[c][l] != new_config[c][l]:
                     self.config[c][l] = new_config[c][l]
         GeneralUtilities.getLocalPluginDir(self.name)
         self.config.write()
     except Exception, err:
         logger.error('Could not save the configuration for the '+self.name+' plugin.')
         logger.exception(err)