cwctl.py
branchstable
changeset 5043 fe52dd3936cf
parent 5042 cc062bb09abb
child 5048 bf8a53a11b6d
child 5092 e126becc1263
equal deleted inserted replaced
5042:cc062bb09abb 5043:fe52dd3936cf
   381         from logilab.common.textutils import splitstrip
   381         from logilab.common.textutils import splitstrip
   382         configname = self.config.config
   382         configname = self.config.config
   383         cubes = splitstrip(pop_arg(args, 1))
   383         cubes = splitstrip(pop_arg(args, 1))
   384         appid = pop_arg(args)
   384         appid = pop_arg(args)
   385         # get the configuration and helper
   385         # get the configuration and helper
   386         cwcfg.creating = True
       
   387         config = cwcfg.config_for(appid, configname)
   386         config = cwcfg.config_for(appid, configname)
   388         config.set_language = False
   387         config.set_language = False
   389         cubes = config.expand_cubes(cubes)
   388         cubes = config.expand_cubes(cubes)
   390         config.init_cubes(cubes)
   389         config.init_cubes(cubes)
   391         helper = self.config_helper(config)
   390         helper = self.config_helper(config)
   930 
   929 
   931     @staticmethod
   930     @staticmethod
   932     def i18ninstance_instance(appid):
   931     def i18ninstance_instance(appid):
   933         """recompile instance's messages catalogs"""
   932         """recompile instance's messages catalogs"""
   934         config = cwcfg.config_for(appid)
   933         config = cwcfg.config_for(appid)
   935         config.repairing = True # notify this is not a regular start
   934         config.quick_start = True # notify this is not a regular start
   936         config.read_instance_schema = False # bootstrap schema is enough
       
   937         repo = config.repository()
   935         repo = config.repository()
   938         if config._cubes is None:
   936         if config._cubes is None:
   939             # web only config
   937             # web only config
   940             config.init_cubes(repo.get_cubes())
   938             config.init_cubes(repo.get_cubes())
   941         errors = config.i18ncompile()
   939         errors = config.i18ncompile()