def ajax_check_user(): app.logger.debug(request) item = User.get_user(request) result = "" if item: result = 'NOTOK' else: result = 'OK' #return json.dumps({'status':'OK'}) return jsonify({'status': result})
def load_user(email): return User.get_user(db_manager, email)