# HG changeset patch # User Sylvain Thénault # Date 1269609214 -3600 # Node ID cc062bb09abb2ff19e3732aae1cfda3be18092ff # Parent ebdab53b0c45deb55842067268e929399329df59 fix #726167: i18ninstance use data in bootstrab_cubes instead of the database one diff -r ebdab53b0c45 -r cc062bb09abb cwctl.py --- a/cwctl.py Fri Mar 26 13:45:48 2010 +0100 +++ b/cwctl.py Fri Mar 26 14:13:34 2010 +0100 @@ -932,20 +932,12 @@ def i18ninstance_instance(appid): """recompile instance's messages catalogs""" config = cwcfg.config_for(appid) - try: - config.bootstrap_cubes() - except IOError, ex: - import errno - if ex.errno != errno.ENOENT: - raise - # bootstrap_cubes files doesn't exist - # notify this is not a regular start - config.repairing = True - # create an in-memory repository, will call config.init_cubes() - config.repository() - except AttributeError: + config.repairing = True # notify this is not a regular start + config.read_instance_schema = False # bootstrap schema is enough + repo = config.repository() + if config._cubes is None: # web only config - config.init_cubes(config.repository().get_cubes()) + config.init_cubes(repo.get_cubes()) errors = config.i18ncompile() if errors: print '\n'.join(errors)