|
@@ -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)
|