Commit 99cdd223 authored by janis.streib's avatar janis.streib 🦉
Browse files

ADD: JS_MODS

parent 85cb34eb
Pipeline #106647 passed with stages
in 7 minutes and 57 seconds
......@@ -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'))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment