bug_tracker::get_uploaded_patch_file_content (public)

 bug_tracker::get_uploaded_patch_file_content

Defined in packages/bug-tracker/tcl/bug-tracker-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bug-tracker/www/patch-add.tcl packages/bug-tracker/ www/patch-add.tcl bug_tracker::get_uploaded_patch_file_content bug_tracker::get_uploaded_patch_file_content packages/bug-tracker/www/patch-add.tcl->bug_tracker::get_uploaded_patch_file_content packages/bug-tracker/www/patch.tcl packages/bug-tracker/ www/patch.tcl packages/bug-tracker/www/patch.tcl->bug_tracker::get_uploaded_patch_file_content

Testcases:
No testcase defined.
Source code:
    set patch_file [ns_queryget patch_file]

    if { $patch_file eq "" } {
        # No patch file was uploaded
        return ""
    }

    set tmp_file [ns_queryget patch_file.tmpfile]
    set tmp_file_channel [open $tmp_file r]
    set content [read $tmp_file_channel]
    close $tmp_file_channel

    return $content
Generic XQL file:
packages/bug-tracker/tcl/bug-tracker-procs.xql

PostgreSQL XQL file:
packages/bug-tracker/tcl/bug-tracker-procs-postgresql.xql

Oracle XQL file:
packages/bug-tracker/tcl/bug-tracker-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: