batch-document-download.tcl

Download a whole batch XML document.

Location:
/packages/acs-admin/www/auth/batch-document-download.tcl
Author:
Peter Marklund

Related Files

[ hide source ] | [ make this the default ]

File Contents

ad_page_contract {
    Download a whole batch XML document.

    @author Peter Marklund
} {
    job_id:naturalnum,notnull
}

set document [db_string select_document {
    select document
    from auth_batch_jobs
    where job_id = :job_id
}]

ns_return 200 text/plain $document
ad_script_abort

# Local variables:
#    mode: tcl
#    tcl-indent-level: 4
#    indent-tabs-mode: nil
# End: