about summary refs log tree commit diff
path: root/uploader/route_utils.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/route_utils.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/route_utils.py')
-rw-r--r--uploader/route_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/uploader/route_utils.py b/uploader/route_utils.py
index 53247e6..4449475 100644
--- a/uploader/route_utils.py
+++ b/uploader/route_utils.py
@@ -3,7 +3,6 @@ import logging
 from json.decoder import JSONDecodeError
 
 from flask import (flash,
-                   url_for,
                    request,
                    redirect,
                    render_template,
@@ -11,6 +10,7 @@ from flask import (flash,
 
 from gn_libs.mysqldb import database_connection
 
+from uploader.flask_extensions import url_for
 from uploader.datautils import base64_encode_dict, base64_decode_to_dict
 from uploader.population.models import (populations_by_species,
                                         population_by_species_and_id)