download-procs.tcl

Procs used by the download module.

Location:
packages/download/tcl/download-procs.tcl
Created:
Tue Dec 12 15:13:52 2000
Author:
jbank@arsdigita.com [jbank@arsdigita.com]
CVS Identification:
$Id: download-procs.tcl,v 1.22 2019/10/15 09:30:36 gustafn Exp $

Procedures in this file

Detailed information

download_file_downloader (public)

 download_file_downloader

Sends the requested file to the user. Note that the path has the original file name, so the browser will have a sensible name if you save the file. Version downloads are supported by looking for the form variable version_id. We don't actually check that the version_id matches the path, we just serve it up.

Partial Call Graph (max 5 caller/called nodes):
%3 ad_conn ad_conn (public) ad_job ad_job (public) ad_page_contract ad_page_contract (public) ad_returnredirect ad_returnredirect (public) ad_script_abort ad_script_abort (public) download_file_downloader download_file_downloader download_file_downloader->ad_conn download_file_downloader->ad_job download_file_downloader->ad_page_contract download_file_downloader->ad_returnredirect download_file_downloader->ad_script_abort

Testcases:
No testcase defined.

download_insert_metadata (public)

 download_insert_metadata repository_id archive_type_id revision_id \
    metadata_array

Do metadata insertion. Assume within transaction.

Parameters:
repository_id (required)
archive_type_id (required)
revision_id (required)
metadata_array (required)

Partial Call Graph (max 5 caller/called nodes):
%3 download_insert_revision download_insert_revision (public) download_insert_metadata download_insert_metadata download_insert_revision->download_insert_metadata db_dml db_dml (public) download_insert_metadata->db_dml db_list_of_lists db_list_of_lists (public) download_insert_metadata->db_list_of_lists download_metadata_column download_metadata_column (public) download_insert_metadata->download_metadata_column

Testcases:
No testcase defined.

download_insert_revision (public)

 download_insert_revision upload_file tmpfile repository_id \
    archive_type_id archive_id version_name revision_id user_id \
    creation_ip approved_p metadata_array

Dummy comment.

Parameters:
upload_file (required)
tmpfile (required)
repository_id (required)
archive_type_id (required)
archive_id (required)
version_name (required)
revision_id (required)
user_id (required)
creation_ip (required)
approved_p (required)
metadata_array (required)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/download/www/archive-add-2.tcl packages/download/ www/archive-add-2.tcl download_insert_revision download_insert_revision packages/download/www/archive-add-2.tcl->download_insert_revision packages/download/www/archive-version-add-2.tcl packages/download/ www/archive-version-add-2.tcl packages/download/www/archive-version-add-2.tcl->download_insert_revision cr_filename_to_mime_type cr_filename_to_mime_type (public) download_insert_revision->cr_filename_to_mime_type db_dml db_dml (public) download_insert_revision->db_dml db_exec_plsql db_exec_plsql (public) download_insert_revision->db_exec_plsql download_insert_metadata download_insert_metadata (public) download_insert_revision->download_insert_metadata

Testcases:
No testcase defined.

download_metadata_column (public)

 download_metadata_column data_type

Dummy comment.

Parameters:
data_type (required)

Partial Call Graph (max 5 caller/called nodes):
%3 download_insert_metadata download_insert_metadata (public) download_metadata_column download_metadata_column download_insert_metadata->download_metadata_column packages/download/www/all-metadata.tcl packages/download/ www/all-metadata.tcl packages/download/www/all-metadata.tcl->download_metadata_column packages/download/www/index.tcl packages/download/ www/index.tcl packages/download/www/index.tcl->download_metadata_column packages/download/www/one-metadata.tcl packages/download/ www/one-metadata.tcl packages/download/www/one-metadata.tcl->download_metadata_column packages/download/www/one-revision.tcl packages/download/ www/one-revision.tcl packages/download/www/one-revision.tcl->download_metadata_column

Testcases:
No testcase defined.

download_metadata_widget (public)

 download_metadata_widget data_type name metadata_id [ user_value ]

Return a widget to take input of the given data_type

Parameters:
data_type (required)
name (required)
metadata_id (required)
user_value (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/download/www/archive-add.tcl packages/download/ www/archive-add.tcl download_metadata_widget download_metadata_widget packages/download/www/archive-add.tcl->download_metadata_widget packages/download/www/archive-version-add.tcl packages/download/ www/archive-version-add.tcl packages/download/www/archive-version-add.tcl->download_metadata_widget ad_dateentrywidget ad_dateentrywidget (public, deprecated) download_metadata_widget->ad_dateentrywidget ad_decode ad_decode (public) download_metadata_widget->ad_decode db_foreach db_foreach (public) download_metadata_widget->db_foreach

Testcases:
No testcase defined.

download_repository_id (public)

 download_repository_id [ package_id ] [ do_redirect ]

Get repository_id mounted for package_id.

Parameters:
package_id (optional)
do_redirect (optional, defaults to "1")

Partial Call Graph (max 5 caller/called nodes):
%3 packages/download/www/admin/report-by-ip.tcl packages/download/ www/admin/report-by-ip.tcl download_repository_id download_repository_id packages/download/www/admin/report-by-ip.tcl->download_repository_id packages/download/www/admin/report-by-user.tcl packages/download/ www/admin/report-by-user.tcl packages/download/www/admin/report-by-user.tcl->download_repository_id packages/download/www/admin/report-one-ip.tcl packages/download/ www/admin/report-one-ip.tcl packages/download/www/admin/report-one-ip.tcl->download_repository_id packages/download/www/admin/report-one-user.tcl packages/download/ www/admin/report-one-user.tcl packages/download/www/admin/report-one-user.tcl->download_repository_id packages/download/www/admin/report-version-downloads.tcl packages/download/ www/admin/report-version-downloads.tcl packages/download/www/admin/report-version-downloads.tcl->download_repository_id download_repository_info download_repository_info (public) download_repository_id->download_repository_info

Testcases:
No testcase defined.

download_repository_info (public)

 download_repository_info [ package_id ] [ do_redirect ]

Get information about the repository mounted for package_id.

Parameters:
package_id (optional)
do_redirect (optional, defaults to "1")

Partial Call Graph (max 5 caller/called nodes):
%3 download_repository_id download_repository_id (public) download_repository_info download_repository_info download_repository_id->download_repository_info packages/download/www/admin/approve-or-reject-2.tcl packages/download/ www/admin/approve-or-reject-2.tcl packages/download/www/admin/approve-or-reject-2.tcl->download_repository_info packages/download/www/admin/index.tcl packages/download/ www/admin/index.tcl packages/download/www/admin/index.tcl->download_repository_info packages/download/www/archive-add.tcl packages/download/ www/archive-add.tcl packages/download/www/archive-add.tcl->download_repository_info packages/download/www/help.tcl packages/download/ www/help.tcl packages/download/www/help.tcl->download_repository_info ad_conn ad_conn (public) download_repository_info->ad_conn ad_return_exception_page ad_return_exception_page (public) download_repository_info->ad_return_exception_page ad_script_abort ad_script_abort (public) download_repository_info->ad_script_abort db_0or1row db_0or1row (public) download_repository_info->db_0or1row db_nextval db_nextval (public) download_repository_info->db_nextval

Testcases:
No testcase defined.

download_validate_metadata (public)

 download_validate_metadata repository_id metadata_info archive_type_id

Validate metadata arguments for a given archive_type

Parameters:
repository_id (required)
metadata_info (required)
archive_type_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/download/www/archive-add-2.tcl packages/download/ www/archive-add-2.tcl download_validate_metadata download_validate_metadata packages/download/www/archive-add-2.tcl->download_validate_metadata packages/download/www/archive-version-add-2.tcl packages/download/ www/archive-version-add-2.tcl packages/download/www/archive-version-add-2.tcl->download_validate_metadata ad_complain ad_complain (public) download_validate_metadata->ad_complain db_foreach db_foreach (public) download_validate_metadata->db_foreach

Testcases:
No testcase defined.
[ show source ]