@require_POST
@login_required
def watch_approved(request, product=None):
 if (request.LANGUAGE_CODE not in settings.SUMO_LANGUAGES):
  raise Http404
 kwargs = {'locale': request.LANGUAGE_CODE}
 if (product is not None):
  kwargs['product'] = product
 ApproveRevisionInLocaleEvent.notify(request.user, **kwargs)
 statsd.incr('wiki.watches.approved')
 return HttpResponse()

@ require_POST @ login_required def watch_approved ( request , product = None ) : if ( request . LANGUAGE_CODE not in settings . SUMO_LANGUAGES ) : raise Http404 kwargs = { 'locale' : request . LANGUAGE_CODE } if ( product is not None ) : kwargs [ 'product' ] = product ApproveRevisionInLocaleEvent . notify ( request . user , ** kwargs ) statsd . incr ( 'wiki.watches.approved' ) return HttpResponse ( )
start watching approved revisions in a locale for a given product .