- Publicity: Public Only All
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
- download_file_downloader (public)
- download_insert_metadata (public)
- download_insert_revision (public)
- download_metadata_column (public)
- download_metadata_widget (public)
- download_repository_id (public)
- download_repository_info (public)
- download_validate_metadata (public)
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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- Testcases:
- No testcase defined.