(request, domain)
return json_response({
        'success': True,
        'hasMultimedia': export_object.has_multimedia,
    })
Checks to see if this form export has multimedia available to export
Checks to see if this form export has multimedia available to export
Checks to see if this form export has multimedia available to export
def has_multimedia(request, domain):
    """Checks to see if this form export has multimedia available to export
    """
    form_or_case = request.GET.get('form_or_case')
    if form_or_case != 'form':
        raise ValueError("has_multimedia is only available for form exports")
    permissions = ExportsPermissionsManager(form_or_case, domain, request.couch_user)
    permissions.access_download_export_or_404()
    export_object = FormExportInstance.get(request.GET.get('export_id'))
    return json_response({
        'success': True,
        'hasMultimedia': export_object.has_multimedia,
    })
def has_multimedia ( request , domain ) : form_or_case = request . GET . get ( 'form_or_case' ) if form_or_case != 'form' : raise ValueError ( "has_multimedia is only available for form exports" ) permissions = ExportsPermissionsManager ( form_or_case , domain , request . couch_user ) permissions . access_download_export_or_404 ( ) export_object = FormExportInstance . get ( request . GET . get ( 'export_id' ) ) return json_response ( { 'success' : True , 'hasMultimedia' : export_object . has_multimedia , } )