htman: erlaube Wiki-Auswahl per Formular
This commit is contained in:
parent
22f27a784d
commit
ba12652b1c
1 changed files with 7 additions and 0 deletions
7
htman.py
7
htman.py
|
@ -131,6 +131,13 @@ def is_zone_valid(zone):
|
||||||
|
|
||||||
@bottle.route('/manage')
|
@bottle.route('/manage')
|
||||||
def show_htpasswd(zone=None):
|
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):
|
if not is_zone_valid(zone):
|
||||||
return bottle.redirect(web_defaults["base_url"])
|
return bottle.redirect(web_defaults["base_url"])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue