server/serverconfig.py
changeset 2489 37a747ad6fd4
parent 2476 1294a6bdf3bf
child 2493 9806571ea790
equal deleted inserted replaced
2488:cd007fc4f2ea 2489:37a747ad6fd4
   209     @classmethod
   209     @classmethod
   210     def schemas_lib_dir(cls):
   210     def schemas_lib_dir(cls):
   211         """instance schema directory"""
   211         """instance schema directory"""
   212         return env_path('CW_SCHEMA_LIB', cls.SCHEMAS_LIB_DIR, 'schemas')
   212         return env_path('CW_SCHEMA_LIB', cls.SCHEMAS_LIB_DIR, 'schemas')
   213 
   213 
   214     @classmethod
       
   215     def backup_dir(cls):
       
   216         """backup directory where a stored db backups before migration"""
       
   217         return env_path('CW_BACKUP', cls.BACKUP_DIR, 'run time')
       
   218 
       
   219     def bootstrap_cubes(self):
   214     def bootstrap_cubes(self):
   220         from logilab.common.textutils import get_csv
   215         from logilab.common.textutils import get_csv
   221         for line in file(join(self.apphome, 'bootstrap_cubes')):
   216         for line in file(join(self.apphome, 'bootstrap_cubes')):
   222             line = line.strip()
   217             line = line.strip()
   223             if not line or line.startswith('#'):
   218             if not line or line.startswith('#'):