コード例 #1
0
def watch_locale(request):
    """Start watching a locale for revisions ready for review."""
    ReviewableRevisionInLocaleEvent.notify(request.user,
                                           locale=request.LANGUAGE_CODE)
    statsd.incr('wiki.watches.locale')
    # A 200 so jQuery interprets it as success
    return HttpResponse()
コード例 #2
0
ファイル: views.py プロジェクト: atishrails/kitsune
def watch_locale(request, product=None):
    """Start watching a locale for revisions ready for review."""
    kwargs = {'locale': request.LANGUAGE_CODE}
    if product is not None:
        kwargs['product'] = product
    ReviewableRevisionInLocaleEvent.notify(request.user, **kwargs)
    statsd.incr('wiki.watches.locale')

    return HttpResponse()
コード例 #3
0
def watch_locale(request, product=None):
    """Start watching a locale for revisions ready for review."""
    kwargs = {'locale': request.LANGUAGE_CODE}
    if product is not None:
        kwargs['product'] = product
    ReviewableRevisionInLocaleEvent.notify(request.user, **kwargs)
    statsd.incr('wiki.watches.locale')

    return HttpResponse()
コード例 #4
0
ファイル: views.py プロジェクト: bea/kitsune
def watch_locale(request):
    """Start watching a locale for revisions ready for review."""
    ReviewableRevisionInLocaleEvent.notify(request.user, locale=request.LANGUAGE_CODE)
    statsd.incr('wiki.watches.locale')
    # A 200 so jQuery interprets it as success
    return HttpResponse()