|
@@ -208,6 +208,11 @@ def site_load(data_path):
|
208
|
208
|
#WARNING !!!! Hardcoded interface name ! Here we have to find the
|
209
|
209
|
#interface plugin name in order to populate the cache properly
|
210
|
210
|
app = LodelContext.module('lodel.plugins.webui.run')
|
|
211
|
+ #a dirty & quick attempt to fix context unwanted exite via
|
|
212
|
+ #hooks
|
|
213
|
+ for name in ( 'Plugin', 'LodelHook', 'logger', 'core_hooks',
|
|
214
|
+ 'core_scripts'):
|
|
215
|
+ del(globals()[name])
|
211
|
216
|
#HAS TO be populated in __loader__ context
|
212
|
217
|
LodelContext.set(None)
|
213
|
218
|
LodelContext.expose_modules(globals(), {
|
|
@@ -217,11 +222,6 @@ def site_load(data_path):
|
217
|
222
|
#dyncode
|
218
|
223
|
LodelContext.set(ctx_name)
|
219
|
224
|
dyncode_bootstraping()
|
220
|
|
- #a dirty & quick attempt to fix context unwanted exite via
|
221
|
|
- #hooks
|
222
|
|
- for name in ( 'Plugin', 'LodelHook', 'logger', 'core_hooks',
|
223
|
|
- 'core_scripts'):
|
224
|
|
- del(globals()[name])
|
225
|
225
|
#site fully loaded, switching back to loader context
|
226
|
226
|
LodelContext.set(None)
|
227
|
227
|
|