Example #1
0
def download_attachment(request, domain, instance_id):
    attachment = request.GET.get('attachment', False)
    if not attachment:
        return HttpResponseBadRequest("Invalid attachment.")
    instance = _get_form_or_404(instance_id)
    assert(domain == instance.domain)
    return couchforms_views.download_attachment(request, instance_id, attachment)
Example #2
0
def download_attachment(request, domain, instance_id):
    attachment = request.GET.get('attachment', False)
    if not attachment:
        return HttpResponseBadRequest("Invalid attachment.")
    instance = _get_form_or_404(instance_id)
    assert(domain == instance.domain)
    return couchforms_views.download_attachment(request, instance_id, attachment)
Example #3
0
def download_attachment(request, domain, instance_id, attachment):
    instance = XFormInstance.get(instance_id)
    assert(domain == instance.domain)
    return couchforms_views.download_attachment(request, instance_id, attachment)
Example #4
0
def download_attachment(request, domain, instance_id, attachment):
    instance = _get_form_or_404(instance_id)
    assert (domain == instance.domain)
    return couchforms_views.download_attachment(request, instance_id,
                                                attachment)
Example #5
0
def download_attachment(request, domain, instance_id, attachment):
    instance = _get_form_or_404(instance_id)
    assert(domain == instance.domain)
    return couchforms_views.download_attachment(request, instance_id, attachment)