diff options
author | zsloan | 2020-09-13 18:23:28 -0500 |
---|---|---|
committer | zsloan | 2020-09-13 18:23:28 -0500 |
commit | 7d114484fbb77e20f4e60c10dd0cb5b1a7772eda (patch) | |
tree | cb6101b558e93fc7dfdf43880109d15a30f3f15e /wqflask | |
parent | 9f458b92aa28ac2d00b9bf822c516d0545a79bc9 (diff) | |
download | genenetwork2-7d114484fbb77e20f4e60c10dd0cb5b1a7772eda.tar.gz |
Added in-progress info-page to views.py as well as in-progress
authorization/security guide
* wqflask/wqflask/views.py - Added endpoint for info page and
authorization/security tutorial
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/views.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index fc9949a8..3d623736 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -37,6 +37,7 @@ from wqflask import gsearch from wqflask import update_search_results from wqflask import docs from wqflask import news +from wqflask import db_info from wqflask.submit_bnw import get_bnw_input from base.data_set import create_dataset, DataSet # Used by YAML in marker_regression from wqflask.show_trait import show_trait @@ -908,12 +909,24 @@ def snp_browser_page(): return render_template("snp_browser.html", **template_vars.__dict__) +@app.route("/db_info", methods=('GET',)) +def db_info_page(): + template_vars = db_info.InfoPage(request.args) + + return render_template("info_page.html", **template_vars.__dict__) + @app.route("/tutorial/WebQTLTour", methods=('GET',)) def tutorial_page(): #ZS: Currently just links to GN1 logger.info(request.url) return redirect("http://gn1.genenetwork.org/tutorial/WebQTLTour/") +@app.route("/tutorial/security", methods=('GET',)) +def security_tutorial_page(): + #ZS: Currently just links to GN1 + logger.info(request.url) + return render_template("admin/security_help.html") + @app.route("/submit_bnw", methods=('POST',)) def submit_bnw(): logger.info(request.url) |