diff options
author | Frederick Muriuki Muriithi | 2023-08-07 07:19:16 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-08-07 09:26:11 +0300 |
commit | c9f35e54d5d894051ceb446d1dce54915dcb20f6 (patch) | |
tree | c2bfc7bd6b7feab4b7418770f05e7d6ab43623da /gn_auth/auth/authorisation/groups | |
parent | b7f5cd0d788748559ca5e9768f3ea35d45442ef6 (diff) | |
download | gn-auth-c9f35e54d5d894051ceb446d1dce54915dcb20f6.tar.gz |
Update module name/path
Change from gn3 to gn_auth
Diffstat (limited to 'gn_auth/auth/authorisation/groups')
-rw-r--r-- | gn_auth/auth/authorisation/groups/data.py | 10 | ||||
-rw-r--r-- | gn_auth/auth/authorisation/groups/models.py | 6 | ||||
-rw-r--r-- | gn_auth/auth/authorisation/groups/views.py | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/gn_auth/auth/authorisation/groups/data.py b/gn_auth/auth/authorisation/groups/data.py index ee6f70e..d05747b 100644 --- a/gn_auth/auth/authorisation/groups/data.py +++ b/gn_auth/auth/authorisation/groups/data.py @@ -1,11 +1,11 @@ """Handles the resource objects' data.""" from MySQLdb.cursors import DictCursor -from gn3 import db_utils as gn3db -from gn3.auth import db as authdb -from gn3.auth.authorisation.groups import Group -from gn3.auth.authorisation.checks import authorised_p -from gn3.auth.authorisation.errors import NotFoundError +from gn_auth import db_utils as gn3db +from gn_auth.auth import db as authdb +from gn_auth.auth.authorisation.groups import Group +from gn_auth.auth.authorisation.checks import authorised_p +from gn_auth.auth.authorisation.errors import NotFoundError def __fetch_mrna_data_by_ids__( conn: gn3db.Connection, dataset_ids: tuple[str, ...]) -> tuple[ diff --git a/gn_auth/auth/authorisation/groups/models.py b/gn_auth/auth/authorisation/groups/models.py index 5a3ae50..9008bef 100644 --- a/gn_auth/auth/authorisation/groups/models.py +++ b/gn_auth/auth/authorisation/groups/models.py @@ -7,9 +7,9 @@ from typing import Any, Sequence, Iterable, Optional, NamedTuple from flask import g from pymonad.maybe import Just, Maybe, Nothing -from gn3.auth import db -from gn3.auth.dictify import dictify -from gn3.auth.authentication.users import User, user_by_id +from gn_auth.auth import db +from gn_auth.auth.dictify import dictify +from gn_auth.auth.authentication.users import User, user_by_id from ..checks import authorised_p from ..privileges import Privilege diff --git a/gn_auth/auth/authorisation/groups/views.py b/gn_auth/auth/authorisation/groups/views.py index 628df36..d1724cc 100644 --- a/gn_auth/auth/authorisation/groups/views.py +++ b/gn_auth/auth/authorisation/groups/views.py @@ -7,11 +7,11 @@ from functools import partial from MySQLdb.cursors import DictCursor from flask import request, jsonify, Response, Blueprint, current_app -from gn3.auth import db -from gn3 import db_utils as gn3db +from gn_auth.auth import db +from gn_auth import db_utils as gn3db -from gn3.auth.dictify import dictify -from gn3.auth.db_utils import with_db_connection +from gn_auth.auth.dictify import dictify +from gn_auth.auth.db_utils import with_db_connection from .data import link_data_to_group from .models import ( |