aboutsummaryrefslogtreecommitdiff
path: root/uploader/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/__init__.py')
-rw-r--r--uploader/__init__.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/uploader/__init__.py b/uploader/__init__.py
index 2d731af..9fdb383 100644
--- a/uploader/__init__.py
+++ b/uploader/__init__.py
@@ -9,13 +9,11 @@ from flask_session import Session
from uploader.oauth2.client import user_logged_in, authserver_authorise_uri
-from .entry import entrybp
-from .upload import upload
-from .parse import parsebp
-from .samples import samples
+from . import session
from .base_routes import base
-from .dbinsert import dbinsertbp
+from .species import speciesbp
from .oauth2.views import oauth2
+from .expression_data import exprdatabp
from .errors import register_error_handlers
def override_settings_with_envvars(
@@ -78,17 +76,14 @@ def create_app():
app.add_template_global(lambda: app.config["GN2_SERVER_URL"],
name="gn2server_uri")
app.add_template_global(user_logged_in)
+ app.add_template_global(lambda : session.user_details()["email"], name="user_email")
Session(app)
# setup blueprints
app.register_blueprint(base, url_prefix="/")
- app.register_blueprint(entrybp, url_prefix="/")
- app.register_blueprint(parsebp, url_prefix="/parse")
app.register_blueprint(oauth2, url_prefix="/oauth2")
- app.register_blueprint(upload, url_prefix="/upload")
- app.register_blueprint(dbinsertbp, url_prefix="/dbinsert")
- app.register_blueprint(samples, url_prefix="/samples")
+ app.register_blueprint(speciesbp, url_prefix="/species")
register_error_handlers(app)
return app