From 0d628fc3214cc9d39746f462861db6f93afd2611 Mon Sep 17 00:00:00 2001 From: lars Date: Tue, 9 Feb 2021 22:44:41 +0000 Subject: [PATCH] htman: erlaube Wiki-Auswahl per Formular --- htman/htman.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htman/htman.py b/htman/htman.py index 0314d08..5f148f7 100644 --- a/htman/htman.py +++ b/htman/htman.py @@ -131,6 +131,13 @@ def is_zone_valid(zone): @bottle.route('/manage') def show_htpasswd(zone=None): + return select_htpasswd(zone) + + +@bottle.route('/manage', method='POST') +def select_htpasswd(zone=None): + if not zone: + zone = bottle.request.forms.get('zone') if not is_zone_valid(zone): return bottle.redirect(web_defaults["base_url"]) else: