equal
deleted
inserted
replaced
771 mih = config.migration_handler() |
771 mih = config.migration_handler() |
772 repo = mih.repo |
772 repo = mih.repo |
773 vcconf = repo.get_versions() |
773 vcconf = repo.get_versions() |
774 helper = self.config_helper(config, required=False) |
774 helper = self.config_helper(config, required=False) |
775 if self.config.force_cube_version: |
775 if self.config.force_cube_version: |
776 for cube, version in self.config.force_cube_version.iteritems(): |
776 for cube, version in self.config.force_cube_version.items(): |
777 vcconf[cube] = Version(version) |
777 vcconf[cube] = Version(version) |
778 toupgrade = [] |
778 toupgrade = [] |
779 for cube in config.cubes(): |
779 for cube in config.cubes(): |
780 installedversion = config.cube_version(cube) |
780 installedversion = config.cube_version(cube) |
781 try: |
781 try: |
1047 )) |
1047 )) |
1048 |
1048 |
1049 def configure_instance(self, appid): |
1049 def configure_instance(self, appid): |
1050 if self.config.param is not None: |
1050 if self.config.param is not None: |
1051 appcfg = cwcfg.config_for(appid) |
1051 appcfg = cwcfg.config_for(appid) |
1052 for key, value in self.config.param.iteritems(): |
1052 for key, value in self.config.param.items(): |
1053 try: |
1053 try: |
1054 appcfg.global_set_option(key, value) |
1054 appcfg.global_set_option(key, value) |
1055 except KeyError: |
1055 except KeyError: |
1056 raise ConfigurationError('unknown configuration key "%s" for mode %s' % (key, appcfg.name)) |
1056 raise ConfigurationError('unknown configuration key "%s" for mode %s' % (key, appcfg.name)) |
1057 appcfg.save() |
1057 appcfg.save() |