def download_signed_reviewer(request, uuid, **kwargs):
 extension = get_object_or_404(Extension.objects.without_deleted(), uuid=uuid)
 version = get_object_or_404(extension.versions.without_deleted(), pk=kwargs['version_id'])
 def is_reviewer():
  return action_allowed(request, 'ContentTools', 'AddonReview')
 if (request.user.is_authenticated() and is_reviewer()):
  version.reviewer_sign_if_necessary()
  log.info(('Downloading reviewers signed add-on: %s version %s from %s' % (extension.pk, version.pk, version.reviewer_signed_file_path)))
  return _download(request, extension, version, version.reviewer_signed_file_path, public=False)
 else:
  raise PermissionDenied

def download_signed_reviewer ( request , uuid , ** kwargs ) : extension = get_object_or_404 ( Extension . objects . without_deleted ( ) , uuid = uuid ) version = get_object_or_404 ( extension . versions . without_deleted ( ) , pk = kwargs [ 'version_id' ] ) def is_reviewer ( ) : return action_allowed ( request , 'ContentTools' , 'AddonReview' ) if ( request . user . is_authenticated ( ) and is_reviewer ( ) ) : version . reviewer_sign_if_necessary ( ) log . info ( ( 'Downloading reviewers signed add-on: %s version %s from %s' % ( extension . pk , version . pk , version . reviewer_signed_file_path ) ) ) return _download ( request , extension , version , version . reviewer_signed_file_path , public = False ) else : raise PermissionDenied
download an archive for a given extension/version .