todo action handler

pull/6/head
Yax 3 years ago
parent ed430799f5
commit 04c2d8f685

@ -85,6 +85,7 @@ def stacosys_server(config_pathname):
app.config.update(WEB_USERNAME=conf.get(ConfigParameter.WEB_USERNAME))
app.config.update(WEB_PASSWORD=conf.get(ConfigParameter.WEB_PASSWORD))
app.config.update(MAILER=mailer)
app.config.update(RSS=rss)
logger.info(f"start interfaces {api} {form} {admin}")
# start Flask

@ -60,6 +60,7 @@ def admin_homepage():
@app.route("/web/admin", methods=["POST"])
def admin_action():
flash(request.form.get("comment") + " " + request.form.get("action"))
# TODO process action
# rebuild RSS
#rss.generate()
app.config.get("RSS").generate()
return redirect('/web/admin')

Loading…
Cancel
Save