예제 #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)
예제 #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)
예제 #3
0
파일: views.py 프로젝트: mchampanis/core-hq
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)
예제 #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)
예제 #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)