Commit 4cfbb0e4 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[i18ncube] we must load site_cubicweb file before calling set_schema, else we...

[i18ncube] we must load site_cubicweb file before calling set_schema, else we may miss some options or other initialization stuff necessary to appobject loading

--HG--
branch : stable
parent 5cb121d4f02f
......@@ -957,7 +957,10 @@ the repository',
def load_site_cubicweb(self):
"""load instance's specific site_cubicweb file"""
for path in reversed([self.apphome] + self.cubes_path()):
paths = self.cubes_path()
if self.apphome is not None:
paths = [self.apphome] + paths
for path in reversed(paths):
sitefile = join(path, 'site_cubicweb.py')
if exists(sitefile) and not sitefile in self._site_loaded:
self._load_site_cubicweb(sitefile)
......
......@@ -58,6 +58,7 @@ class DevConfiguration(ServerConfiguration, WebConfiguration):
if cubes:
self._cubes = self.reorder_cubes(
self.expand_cubes(cubes, with_recommends=True))
self.load_site_cubicweb()
else:
self._cubes = ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment