about summary refs log tree commit diff
path: root/uploader/phenotypes/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-12-10 12:57:14 -0600
committerFrederick Muriuki Muriithi2025-12-10 12:57:14 -0600
commit09fc4bbc3ef66b02f0711dadaf3b10ed53d9d968 (patch)
tree722daa9cee62cc7d66ed58f85fc18dcbf2636a89 /uploader/phenotypes/views.py
parent7838bd59c7fe3fbc936c932f1729c7372eb158ed (diff)
downloadgn-uploader-09fc4bbc3ef66b02f0711dadaf3b10ed53d9d968.tar.gz
Feature Flags: Generically deal with HTTP-based feature flags.
* Define a default `FEATURE_FLAGS_HTTP` configuration variable that's
  an empty list to help defining http-based feature flags that can be
  used to turn on/off features
* Build macro to include hidden fields for feature flags where
  necessary.
* Extend flask's `url_for` function to deal with defined feature flags
  in a mostly transparent way
Diffstat (limited to 'uploader/phenotypes/views.py')
-rw-r--r--uploader/phenotypes/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index 15d2b6c..2afd8a3 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -23,7 +23,6 @@ from gn_libs.mysqldb import database_connection
 
 from flask import (flash,
                    request,
-                   url_for,
                    jsonify,
                    redirect,
                    Blueprint,
@@ -35,7 +34,8 @@ from r_qtl import exceptions as rqe
 
 from uploader import jobs
 from uploader import session
-from uploader.files import save_file#, fullpath
+from uploader.files import save_file
+from uploader.flask_extensions import url_for
 from uploader.ui import make_template_renderer
 from uploader.oauth2.client import oauth2_post
 from uploader.oauth2.tokens import request_token