Commit a119a293 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

Reorganizing alerts app

parent 76cc4df7
# Submodule for alert issuer classes
......@@ -11,7 +11,7 @@ from events.view_utils import eventToDict, eventLogToDict, signoffToDict, \
emObservationToDict, embbEventLogToDict, groupeventpermissionToDict, \
labelToDict, voeventToDict
from ..main import issue_alerts
from ..utils import AlertIssuerWithParentObject
from .base import AlertIssuerWithParentObject
# Set up logger
logger = logging.getLogger(__name__)
......
......@@ -3,7 +3,7 @@ from api.v1.superevents.serializers import SupereventSerializer, \
SupereventVOEventSerializer, SupereventEMObservationSerializer, \
SupereventSignoffSerializer, SupereventGroupObjectPermissionSerializer
from ..main import issue_alerts
from ..utils import AlertIssuerWithParentObject
from .base import AlertIssuerWithParentObject
class AlertIssuerWithParentSuperevent(AlertIssuerWithParentObject):
......
......@@ -32,7 +32,7 @@ from rest_framework.renderers import BaseRenderer, JSONRenderer, \
from rest_framework.response import Response
from rest_framework.views import APIView
from alerts.events.utils import EventAlertIssuer, EventLogAlertIssuer, \
from alerts.issuers.events import EventAlertIssuer, EventLogAlertIssuer, \
EventVOEventAlertIssuer, EventPermissionsAlertIssuer
from api.throttling import BurstAnonRateThrottle
from core.http import check_and_serve_file
......
......@@ -16,7 +16,7 @@ from .view_utils import eventToDict, eventLogToDict, emObservationToDict, \
labelToDict
from .permission_utils import assign_default_event_perms
from alerts.events.utils import EventAlertIssuer, EventLabelAlertIssuer, \
from alerts.issuers.events import EventAlertIssuer, EventLabelAlertIssuer, \
EventEMObservationAlertIssuer, EventEMBBEventLogAlertIssuer
from core.vfile import VersionedFile
......
......@@ -31,7 +31,7 @@ from .view_utils import get_file
from .view_utils import get_recent_events_string
from .view_utils import eventLogToDict
from .view_utils import signoffToDict
from alerts.events.utils import EventAlertIssuer, EventLogAlertIssuer, \
from alerts.issuers.events import EventAlertIssuer, EventLogAlertIssuer, \
EventSignoffAlertIssuer, EventPermissionsAlertIssuer
from superevents.models import Superevent
......
......@@ -10,8 +10,8 @@ from .buildVOEvent import construct_voevent_file
from .models import Superevent, Log, Labelling, EMObservation, EMFootprint, \
VOEvent, Signoff
from .shortcuts import is_superevent
from alerts.events.utils import EventAlertIssuer, EventLogAlertIssuer
from alerts.superevents.utils import SupereventAlertIssuer, \
from alerts.issuers.events import EventAlertIssuer, EventLogAlertIssuer
from alerts.issuers.superevents import SupereventAlertIssuer, \
SupereventLogAlertIssuer, SupereventLabelAlertIssuer, \
SupereventVOEventAlertIssuer, SupereventEMObservationAlertIssuer, \
SupereventSignoffAlertIssuer, SupereventPermissionsAlertIssuer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment