From 0f72dfa50f821d389022a30539a96244685d6192 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Mon, 2 Apr 2018 08:29:00 +0000 Subject: User manager no longer uses SQL --- wqflask/wqflask/user_manager.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/user_manager.py b/wqflask/wqflask/user_manager.py index ebca4807..a0605803 100644 --- a/wqflask/wqflask/user_manager.py +++ b/wqflask/wqflask/user_manager.py @@ -23,9 +23,6 @@ import urlparse import simplejson as json -import sqlalchemy -from sqlalchemy import orm - #from redis import StrictRedis import redis Redis = redis.StrictRedis() @@ -46,7 +43,6 @@ from wqflask.database import db_session from wqflask import model from utility import Bunch, Struct, after -from utility.tools import LOG_SQL, LOG_SQL_ALCHEMY import logging from utility.logger import getLogger @@ -223,6 +219,7 @@ class UserSession(object): def user_ob(self): """Actual sqlalchemy record""" # Only look it up once if needed, then store it + raise "OBSOLETE: use ElasticSearch instead" try: if LOG_SQL_ALCHEMY: logging.getLogger('sqlalchemy.pool').setLevel(logging.DEBUG) @@ -844,19 +841,6 @@ def register(): return render_template("new_security/register_user.html", values=params, errors=errors) - - -#@app.route("/n/login", methods=('GET', 'POST')) -#def login(): -# return user_manager.login() -# -#@app.route("/manage/verify") -#def verify(): -# user_manager.verify_email() -# return render_template("new_security/verified.html") - - - ################################# Sign and unsign ##################################### def url_for_hmac(endpoint, **values): -- cgit v1.2.3