예제 #1
0
파일: views.py 프로젝트: PinZhang/zamboni
def record(request):
    flag = waffle.models.Flag.objects.get(name='collect-timings')
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn this off here.
    if flag.everyone:
        return django_statsd_record(request)
    return http.HttpResponseForbidden()
예제 #2
0
파일: views.py 프로젝트: PinZhang/zamboni
def record(request):
    flag = waffle.models.Flag.objects.get(name='collect-timings')
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn this off here.
    if flag.everyone:
        return django_statsd_record(request)
    return http.HttpResponseForbidden()
예제 #3
0
def record(request):
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn the percentage down to zero.
    if get_collect_timings():
        return django_statsd_record(request)
    return HttpResponseForbidden()
예제 #4
0
def record(request):
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn the percentage down to zero.
    if get_collect_timings():
        return django_statsd_record(request)
    raise PermissionDenied
예제 #5
0
파일: views.py 프로젝트: bhavyaj/zamboni
def record(request):
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn the percentage down to zero.
    if get_collect_timings():
        return django_statsd_record(request)
    raise PermissionDenied
예제 #6
0
파일: views.py 프로젝트: vdt/zamboni
def record(request):
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn the percentage down to zero.
    if get_collect_timings():
        return django_statsd_record(request)
    return HttpResponseForbidden()