|
@@ -2,7 +2,8 @@
|
2
|
2
|
|
3
|
3
|
from lodel.context import LodelContext
|
4
|
4
|
LodelContext.expose_modules(globals(), {
|
5
|
|
- 'lodel.plugin': ['LodelHook', 'CustomMethod']})
|
|
5
|
+ 'lodel.plugin': ['LodelHook', 'CustomMethod'],
|
|
6
|
+ 'lodel.settings' : 'settings'})
|
6
|
7
|
|
7
|
8
|
@LodelHook('leapi_get_post')
|
8
|
9
|
@LodelHook('leapi_update_pre')
|
|
@@ -12,7 +13,7 @@ LodelContext.expose_modules(globals(), {
|
12
|
13
|
@LodelHook('leapi_insert_pre')
|
13
|
14
|
@LodelHook('leapi_insert_post')
|
14
|
15
|
def dummy_callback(hook_name, caller, payload):
|
15
|
|
- if Lodel.settings.Settings.debug:
|
|
16
|
+ if settings.Settings.debug:
|
16
|
17
|
print("\tHook %s\tcaller %s with %s" % (hook_name, caller, payload))
|
17
|
18
|
return payload
|
18
|
19
|
|