cwconfig.py
brancholdstable
changeset 6741 b9ffecd0316a
parent 6729 1a423eaee782
child 6748 52226299c352
equal deleted inserted replaced
6738:5fc4b6b8e2af 6741:b9ffecd0316a
   945     # instance methods used to get instance specific resources #############
   945     # instance methods used to get instance specific resources #############
   946 
   946 
   947     def __init__(self, appid, debugmode=False):
   947     def __init__(self, appid, debugmode=False):
   948         self.appid = appid
   948         self.appid = appid
   949         CubicWebNoAppConfiguration.__init__(self, debugmode)
   949         CubicWebNoAppConfiguration.__init__(self, debugmode)
   950         fake_gettext = (unicode, lambda ctx, msgid: unicode(msgid))
       
   951         for lang in self.available_languages():
       
   952             self.translations[lang] = fake_gettext
       
   953         self._cubes = None
   950         self._cubes = None
   954         self.load_file_configuration(self.main_config_file())
   951         self.load_file_configuration(self.main_config_file())
   955 
   952 
   956     def adjust_sys_path(self):
   953     def adjust_sys_path(self):
   957         CubicWebNoAppConfiguration.adjust_sys_path(self)
   954         CubicWebNoAppConfiguration.adjust_sys_path(self)