cwctl.py
changeset 9372 e87a808a4c32
parent 9371 1348202527a6
child 9511 241b1232ed7f
child 9700 da7d341cca76
equal deleted inserted replaced
9371:1348202527a6 9372:e87a808a4c32
   750             set_sources_mode(self.config.ext_sources or ('migration',))
   750             set_sources_mode(self.config.ext_sources or ('migration',))
   751         # get instance and installed versions for the server and the componants
   751         # get instance and installed versions for the server and the componants
   752         mih = config.migration_handler()
   752         mih = config.migration_handler()
   753         repo = mih.repo_connect()
   753         repo = mih.repo_connect()
   754         vcconf = repo.get_versions()
   754         vcconf = repo.get_versions()
       
   755         helper = self.config_helper(config, required=False)
   755         if self.config.force_cube_version:
   756         if self.config.force_cube_version:
   756             for cube, version in self.config.force_cube_version.iteritems():
   757             for cube, version in self.config.force_cube_version.iteritems():
   757                 vcconf[cube] = Version(version)
   758                 vcconf[cube] = Version(version)
   758         toupgrade = []
   759         toupgrade = []
   759         for cube in config.cubes():
   760         for cube in config.cubes():
   788         mih.shutdown()
   789         mih.shutdown()
   789         # handle i18n upgrade
   790         # handle i18n upgrade
   790         if not self.i18nupgrade(config):
   791         if not self.i18nupgrade(config):
   791             return
   792             return
   792         print
   793         print
       
   794         if helper:
       
   795             helper.postupgrade(repo)
   793         print '-> instance migrated.'
   796         print '-> instance migrated.'
   794         if instance_running and not (CWDEV or self.config.nostartstop):
   797         if instance_running and not (CWDEV or self.config.nostartstop):
   795             # restart instance through fork to get a proper environment, avoid
   798             # restart instance through fork to get a proper environment, avoid
   796             # uicfg pb (and probably gettext catalogs, to check...)
   799             # uicfg pb (and probably gettext catalogs, to check...)
   797             forkcmd = '%s start %s' % (sys.argv[0], appid)
   800             forkcmd = '%s start %s' % (sys.argv[0], appid)