Browse Source

Bugfixes makin index of webinterface to work in MULTISITE

Yann Weber 8 years ago
parent
commit
e9f8f5e054
2 changed files with 3 additions and 8 deletions
  1. 2
    2
      lodel/auth/client.py
  2. 1
    6
      lodel/plugins/webui/run.py

+ 2
- 2
lodel/auth/client.py View File

@@ -7,7 +7,7 @@ import inspect
7 7
 
8 8
 from lodel.context import LodelContext
9 9
 LodelContext.expose_modules(globals(), {
10
-    'lodel.settings': 'Settings',
10
+    'lodel.settings': ['Settings'],
11 11
     'lodel.logger': 'logger',
12 12
     'lodel.plugin': [('SessionHandlerPlugin', 'SessionHandler')],
13 13
     'lodel.auth.exceptions': ['ClientError', 'ClientAuthenticationFailure',
@@ -243,7 +243,7 @@ a session is allready started !!!")
243 243
     #informations on login and password location (LeApi object & field)
244 244
     @classmethod
245 245
     def fetch_settings(cls):
246
-        from lodel import dyncode
246
+        LodelContext.expose_dyncode(globals(), 'dyncode')
247 247
         if cls._infos_fields is None:
248 248
             cls._infos_fields = list()
249 249
         else:

+ 1
- 6
lodel/plugins/webui/run.py View File

@@ -12,6 +12,7 @@ from werkzeug.wrappers import Response
12 12
 
13 13
 LodelContext.expose_modules(globals(), {
14 14
     'lodel.settings': ['Settings'],
15
+    'lodel.logger': 'logger',
15 16
     'lodel.auth.exceptions': ['ClientError', 'ClientAuthenticationFailure',
16 17
         'ClientPermissionDenied', 'ClientAuthenticationError']})
17 18
 
@@ -67,12 +68,6 @@ except NameError:
67 68
     pass
68 69
 #providing access to dyncode
69 70
 
70
-##@todo Dirty & quick dyncode access providing. Replace it by a clean access
71
-#using LodelContext
72
-lodel = LodelContext.get()
73
-import leapi_dyncode as dyncode
74
-lodel.dyncode = dyncode
75
-
76 71
 
77 72
 # WSGI Application
78 73
 def application(env, start_response):

Loading…
Cancel
Save