diff options
author | Frederick Muriuki Muriithi | 2023-08-08 06:48:14 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-08-08 07:46:06 +0300 |
commit | e7937ade8d91f7741a649de24faacbe194a3c0d0 (patch) | |
tree | f2c868d56aebf409185beb53e06796915283157b /gn_auth/auth/authorisation/users/masquerade | |
parent | 7d09eb50db74ed270dec5be83bdf94bdd1b5907d (diff) | |
download | gn-auth-e7937ade8d91f7741a649de24faacbe194a3c0d0.tar.gz |
Use relative imports to break circular import errors
Diffstat (limited to 'gn_auth/auth/authorisation/users/masquerade')
-rw-r--r-- | gn_auth/auth/authorisation/users/masquerade/models.py | 10 | ||||
-rw-r--r-- | gn_auth/auth/authorisation/users/masquerade/views.py | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/gn_auth/auth/authorisation/users/masquerade/models.py b/gn_auth/auth/authorisation/users/masquerade/models.py index 9779764..86b9e53 100644 --- a/gn_auth/auth/authorisation/users/masquerade/models.py +++ b/gn_auth/auth/authorisation/users/masquerade/models.py @@ -5,13 +5,13 @@ from datetime import datetime from flask import current_app as app -from gn_auth.auth.db import sqlite3 as db -from gn_auth.auth.authorisation.errors import ForbiddenAccess -from gn_auth.auth.authorisation.roles.models import user_roles +from ...errors import ForbiddenAccess +from ...roles.models import user_roles -from gn_auth.auth.authentication.users import User -from gn_auth.auth.authentication.oauth2.models.oauth2token import ( +from ....db import sqlite3 as db +from ....authentication.users import User +from ....authentication.oauth2.models.oauth2token import ( OAuth2Token, save_token) __FIVE_HOURS__ = (60 * 60 * 5) diff --git a/gn_auth/auth/authorisation/users/masquerade/views.py b/gn_auth/auth/authorisation/users/masquerade/views.py index 7bd8ddb..259cdfe 100644 --- a/gn_auth/auth/authorisation/users/masquerade/views.py +++ b/gn_auth/auth/authorisation/users/masquerade/views.py @@ -4,12 +4,12 @@ from functools import partial from flask import request, jsonify, Response, Blueprint -from gn_auth.auth.db.sqlite3 import with_db_connection -from gn_auth.auth.authorisation.errors import InvalidData -from gn_auth.auth.authorisation.checks import require_json +from ...errors import InvalidData +from ...checks import require_json -from gn_auth.auth.authentication.users import user_by_id -from gn_auth.auth.authentication.oauth2.resource_server import require_oauth +from ....db.sqlite3 import with_db_connection +from ....authentication.users import user_by_id +from ....authentication.oauth2.resource_server import require_oauth from .models import masquerade_as |