Skip to content
Snippets Groups Projects
Commit 99cdd223 authored by Janis Streib's avatar Janis Streib :owl:
Browse files

ADD: JS_MODS

parent 85cb34eb
No related branches found
No related tags found
No related merge requests found
Pipeline #273673 passed with warnings
......@@ -30,6 +30,11 @@ LOGIN_URL = 'login_api.login'
# moduels ans their 'mountpoints'
MODULES = []
JS_MODULES = [
'DNSVS',
'MACAuth'
]
MINIDHCPVS_DB = 'mac_addrs'
MINIDHCPVS_USER = 'lease_reader'
MINIDHCPVS_HOST = 'host'
......
......@@ -112,20 +112,4 @@ def handle_generic(e):
@app.context_processor
def inject_mods():
current_mod = request.blueprint
if current_mod is not None:
for m in MODS:
if m.name == current_mod:
current_mod = m
break
search_opts = {}
try:
for m in MODS:
if m.search_func is None:
continue
search_opts[m.printable_name] = m.search_opts_func(login=request.environ['beaker.session']['login'], db=db,
connection=get_db_conn())
except:
pass
return dict(mods=MODS, current_mod=current_mod,
s_opts=search_opts)
return dict(mods=MODS, local_mods=app.config.get('JS_MODULES'))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment