def _is_reviewer(locale, user):
 from kitsune.wiki.models import Locale
 try:
  locale_team = Locale.objects.get(locale=locale)
 except Locale.DoesNotExist:
  log.warning(('Locale not created for %s' % locale))
  return False
 return (user in locale_team.reviewers.all())

def _is_reviewer ( locale , user ) : from kitsune . wiki . models import Locale try : locale_team = Locale . objects . get ( locale = locale ) except Locale . DoesNotExist : log . warning ( ( 'Locale not created for %s' % locale ) ) return False return ( user in locale_team . reviewers . all ( ) )
checks if the user is a reviewer for the given locale .