Browse Source

Bugfix on multisite run process

Yann Weber 7 years ago
parent
commit
bdb7007525
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      lodel/plugins/multisite_web/run.py

+ 6
- 2
lodel/plugins/multisite_web/run.py View File

@@ -38,9 +38,13 @@ except ImportError:
38 38
     from lodel.context import LodelContext, ContextError
39 39
 
40 40
 import lodel.buildconf #safe even outside contexts
41
-from lodel.plugins.multisite.loader_utils import main, site_load, FAST_APP_EXPOSAL_CACHE #UNSAFE ??!!
42
-lodelsites_name = main()
41
+import lodel.plugins.multisite.loader_utils as loader_utils
42
+lodelsites_name = loader_utils.main()
43 43
 LodelContext.set(lodelsites_name)
44
+LodelContext.expose_modules(globals(), {
45
+    'lodel.plugins.multisite.loader_utils': ['FAST_APP_EXPOSAL_CACHE'],
46
+    'lodel.bootstrap': ['site_load'],
47
+})
44 48
 FAST_APP_EXPOSAL_CACHE[lodelsites_name] = LodelContext.module(
45 49
     'lodel.plugins.webui.run')
46 50
 LodelContext.set(None)

Loading…
Cancel
Save