cwconfig.py
changeset 4021 280c910c8710
parent 4001 bc31ede2085d
child 4023 eae23c40627a
equal deleted inserted replaced
4018:d4d4e7112ccf 4021:280c910c8710
   924             print 'warning: ignoring specified sources, requires a repository '\
   924             print 'warning: ignoring specified sources, requires a repository '\
   925                   'configuration'
   925                   'configuration'
   926 
   926 
   927     def migration_handler(self):
   927     def migration_handler(self):
   928         """return a migration handler instance"""
   928         """return a migration handler instance"""
   929         from cubicweb.common.migration import MigrationHelper
   929         from cubicweb.migration import MigrationHelper
   930         return MigrationHelper(self, verbosity=self.verbosity)
   930         return MigrationHelper(self, verbosity=self.verbosity)
   931 
   931 
   932     def i18ncompile(self, langs=None):
   932     def i18ncompile(self, langs=None):
   933         from cubicweb.common import i18n
   933         from cubicweb import i18n
   934         if langs is None:
   934         if langs is None:
   935             langs = self.available_languages()
   935             langs = self.available_languages()
   936         i18ndir = join(self.apphome, 'i18n')
   936         i18ndir = join(self.apphome, 'i18n')
   937         if not exists(i18ndir):
   937         if not exists(i18ndir):
   938             create_dir(i18ndir)
   938             create_dir(i18ndir)