@task
@use_master
def update_supported_locales_single(id, latest=False, **kw):
 from mkt.webapps.models import Webapp
 try:
  app = Webapp.objects.get(pk=id)
 except Webapp.DoesNotExist:
  log.info((u'[Webapp:%s] Did not find webapp to update supported locales.' % id))
  return
 try:
  if app.update_supported_locales(latest=latest):
   log.info((u'[Webapp:%s] Updated supported locales.' % app.id))
 except Exception:
  log.info((u'[Webapp%s] Updating supported locales failed.' % app.id), exc_info=True)

@ task @ use_master def update_supported_locales_single ( id , latest = False , ** kw ) : from mkt . webapps . models import Webapp try : app = Webapp . objects . get ( pk = id ) except Webapp . DoesNotExist : log . info ( ( u'[Webapp:%s] Did not find webapp to update supported locales.' % id ) ) return try : if app . update_supported_locales ( latest = latest ) : log . info ( ( u'[Webapp:%s] Updated supported locales.' % app . id ) ) except Exception : log . info ( ( u'[Webapp%s] Updating supported locales failed.' % app . id ) , exc_info = True )
update supported_locales for an individual app .