--- 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)