equal
deleted
inserted
replaced
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 def bootstrap_cubes(self): |
214 def bootstrap_cubes(self): |
215 from logilab.common.textutils import get_csv |
215 from logilab.common.textutils import splitstrip |
216 for line in file(join(self.apphome, 'bootstrap_cubes')): |
216 for line in file(join(self.apphome, 'bootstrap_cubes')): |
217 line = line.strip() |
217 line = line.strip() |
218 if not line or line.startswith('#'): |
218 if not line or line.startswith('#'): |
219 continue |
219 continue |
220 self.init_cubes(self.expand_cubes(get_csv(line))) |
220 self.init_cubes(self.expand_cubes(splitstrip(line))) |
221 break |
221 break |
222 else: |
222 else: |
223 # no cubes |
223 # no cubes |
224 self.init_cubes(()) |
224 self.init_cubes(()) |
225 |
225 |