コード例 #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
ファイル: views.py プロジェクト: mozillageckoboard/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()
コード例 #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()