Logo Search packages:      
Sourcecode: zeroinstall-injector version File versions

def zeroinstall::injector::policy::Policy::save_config (   self  ) 

Write global settings.

Definition at line 164 of file policy.py.

00164                            :
            """Write global settings."""
            config = ConfigParser.ConfigParser()

            config.set('global', 'help_with_testing', self.help_with_testing)
            config.set('global', 'network_use', self.network_use)
            config.set('global', 'freshness', self.freshness)

            path = basedir.save_config_path(config_site, config_prog)
            path = os.path.join(path, 'global')
            config.write(file(path + '.new', 'w'))
            os.rename(path + '.new', path)
      def process_pending(self):

Generated by  Doxygen 1.6.0   Back to index