htman: erlaube Wiki-Auswahl per Formular
This commit is contained in:
parent
c82f0f480e
commit
0d628fc321
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue