Ejemplo n.º 1
0
def moc_reschedule(request, *args, **kws):
    """
    Allows an operator to acknowledge when the MOC is bad before an observation.
    """
    requestor = get_requestor(request)
    period    = Period.objects.get(id = args[0])

    acknowledge_moc(requestor, period)

    return render_to_response('users/moc_reschedule.html'
                            , dict(requestor = requestor, p = period))
Ejemplo n.º 2
0
def moc_degraded(request, *args, **kws):
    """
    Allows an operator to acknowledge when the MOC is bad after an observation
    has begun.
    """
    requestor = get_requestor(request)
    period    = Period.objects.get(id = args[0])

    acknowledge_moc(requestor, period)

    return render_to_response('users/moc_degraded.html'
                            , dict(requestor = requestor, p = period))