Skip to content

Commit

Permalink
refactor: rename guardian.py -> access_control.py
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Sep 30, 2024
1 parent c5deb96 commit 3315a4d
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 9 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion uvdat/core/rest/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from rest_framework.viewsets import ModelViewSet

from uvdat.core.models import Chart
from uvdat.core.rest.guardian import GuardianFilter, GuardianPermission
from uvdat.core.rest.access_control import GuardianFilter, GuardianPermission
from uvdat.core.rest.serializers import ChartSerializer


Expand Down
2 changes: 1 addition & 1 deletion uvdat/core/rest/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from rest_framework.viewsets import ModelViewSet

from uvdat.core.models import Dataset, NetworkEdge, NetworkNode
from uvdat.core.rest.guardian import GuardianFilter, GuardianPermission
from uvdat.core.rest.access_control import GuardianFilter, GuardianPermission
from uvdat.core.rest.serializers import (
DatasetSerializer,
NetworkEdgeSerializer,
Expand Down
2 changes: 1 addition & 1 deletion uvdat/core/rest/file_item.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from rest_framework.viewsets import ModelViewSet

from uvdat.core.models import FileItem
from uvdat.core.rest.guardian import GuardianFilter, GuardianPermission
from uvdat.core.rest.access_control import GuardianFilter, GuardianPermission
from uvdat.core.rest.serializers import FileItemSerializer


Expand Down
2 changes: 1 addition & 1 deletion uvdat/core/rest/map_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from rest_framework.viewsets import ModelViewSet

from uvdat.core.models import RasterMapLayer, VectorMapLayer
from uvdat.core.rest.guardian import GuardianFilter, GuardianPermission
from uvdat.core.rest.access_control import GuardianFilter, GuardianPermission
from uvdat.core.rest.serializers import (
RasterMapLayerSerializer,
VectorMapLayerDetailSerializer,
Expand Down
2 changes: 1 addition & 1 deletion uvdat/core/rest/network.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from rest_framework.viewsets import ModelViewSet

from uvdat.core.models import Network, NetworkEdge, NetworkNode
from uvdat.core.rest.guardian import GuardianFilter, GuardianPermission
from uvdat.core.rest.access_control import GuardianFilter, GuardianPermission
from uvdat.core.rest.serializers import (
NetworkEdgeSerializer,
NetworkNodeSerializer,
Expand Down
2 changes: 1 addition & 1 deletion uvdat/core/rest/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from rest_framework.viewsets import ModelViewSet

from uvdat.core.models import Project
from uvdat.core.rest.guardian import GuardianFilter, GuardianPermission
from uvdat.core.rest.access_control import GuardianFilter, GuardianPermission
from uvdat.core.rest.serializers import ProjectSerializer
from uvdat.core.tasks.osmnx import load_roads

Expand Down
2 changes: 1 addition & 1 deletion uvdat/core/rest/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from rest_framework.viewsets import GenericViewSet, mixins

from uvdat.core.models import DerivedRegion, SourceRegion
from uvdat.core.rest.guardian import GuardianFilter, GuardianPermission
from uvdat.core.rest.access_control import GuardianFilter, GuardianPermission
from uvdat.core.tasks.regions import DerivedRegionCreationError, create_derived_region

from .serializers import (
Expand Down
6 changes: 5 additions & 1 deletion uvdat/core/rest/simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@

from uvdat.core.models import Project
from uvdat.core.models.simulations import AVAILABLE_SIMULATIONS, SimulationResult
from uvdat.core.rest.guardian import GuardianFilter, GuardianPermission, filter_queryset_by_projects
from uvdat.core.rest.access_control import (
GuardianFilter,
GuardianPermission,
filter_queryset_by_projects,
)
import uvdat.core.rest.serializers as uvdat_serializers


Expand Down
2 changes: 1 addition & 1 deletion uvdat/core/tasks/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import geopandas

from uvdat.core.models import DerivedRegion, Project, SourceRegion, VectorMapLayer
from uvdat.core.rest.guardian import filter_queryset_by_projects
from uvdat.core.rest.access_control import filter_queryset_by_projects
from uvdat.core.tasks.map_layers import save_vector_features


Expand Down

0 comments on commit 3315a4d

Please sign in to comment.