@allow_cross_site_request
def manifest(request, uuid):
 try:
  uuid_hex = UUID(uuid).hex
 except ValueError:
  raise Http404
 langpack = get_object_or_404(LangPack, pk=uuid_hex)
 if (langpack.active or action_allowed(request, 'LangPacks', '%')):
  (manifest_contents, langpack_etag) = langpack.get_minifest_contents()
  @condition(last_modified_func=(lambda request: langpack.modified), etag_func=(lambda request: langpack_etag))
  def _inner_view(request):
   return HttpResponse(manifest_contents, content_type=MANIFEST_CONTENT_TYPE)
  return _inner_view(request)
 raise Http404

@ allow_cross_site_request def manifest ( request , uuid ) : try : uuid_hex = UUID ( uuid ) . hex except ValueError : raise Http404 langpack = get_object_or_404 ( LangPack , pk = uuid_hex ) if ( langpack . active or action_allowed ( request , 'LangPacks' , '%' ) ) : ( manifest_contents , langpack_etag ) = langpack . get_minifest_contents ( ) @ condition ( last_modified_func = ( lambda request : langpack . modified ) , etag_func = ( lambda request : langpack_etag ) ) def _inner_view ( request ) : return HttpResponse ( manifest_contents , content_type = MANIFEST_CONTENT_TYPE ) return _inner_view ( request ) raise Http404
returns the "mini" manifest for a langpack .