Use the list of cubes from the filesystem when reading the schema from the filesystem
Closes #3007259
--- a/server/repository.py Mon Jul 22 10:55:45 2013 +0200
+++ b/server/repository.py Fri Jul 12 09:55:26 2013 +0200
@@ -239,7 +239,7 @@
# load schema from the file system
if not config.creating:
self.warning("set fs instance'schema")
- self.set_schema(config.load_schema())
+ self.set_schema(config.load_schema(expand_cubes=True))
else:
# normal start: load the instance schema from the database
self.info('loading schema from the repository')
--- a/server/serverconfig.py Mon Jul 22 10:55:45 2013 +0200
+++ b/server/serverconfig.py Fri Jul 12 09:55:26 2013 +0200
@@ -361,7 +361,7 @@
self.init_cubes(self.expand_cubes(origcubes))
schema = CubicWebSchemaLoader().load(self, **kwargs)
if expand_cubes:
- # restaure original value
+ # restore original value
self._cubes = origcubes
return schema