dynamically specify name of index page.

This commit is contained in:
Stefan Midjich 2016-04-27 17:05:23 +02:00
parent 52e33e998d
commit 294eb58966
2 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,8 @@ redis_port=6379
plugin_ttl=120 plugin_ttl=120
index_page=portalindex
[logging] [logging]
log_format = %(asctime)s %(name)s[%(process)s] %(levelname)s: %(message)s log_format = %(asctime)s %(name)s[%(process)s] %(levelname)s: %(message)s
log_debug = False log_debug = False

View file

@ -165,7 +165,7 @@ app.router.add_filter('uuid', uuid_filter)
@app.route('/') @app.route('/')
def portalindex(): def portalindex():
return template( return template(
'portalindex', config.get('portal', 'index_page'),
plugin_ttl=config.get('portal', 'plugin_ttl') plugin_ttl=config.get('portal', 'plugin_ttl')
) )