1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-27 23:56:53 +01:00

Bugfixes makin index of webinterface to work in MULTISITE

This commit is contained in:
Yann 2016-11-04 17:15:36 +01:00
commit e9f8f5e054
2 changed files with 3 additions and 8 deletions

View file

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

View file

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