Index: openacs-4/packages/dotlrn-homework/www/file.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-homework/www/file.adp,v diff -u -r1.2 -r1.2.2.1 --- openacs-4/packages/dotlrn-homework/www/file.adp 30 Oct 2003 12:21:44 -0000 1.2 +++ openacs-4/packages/dotlrn-homework/www/file.adp 3 Apr 2004 00:22:06 -0000 1.2.2.1 @@ -43,7 +43,7 @@ - + @version.title@ @version.author@ Index: openacs-4/packages/dotlrn-homework/www/file.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-homework/www/file.tcl,v diff -u -r1.2.2.1 -r1.2.2.2 --- openacs-4/packages/dotlrn-homework/www/file.tcl 26 Nov 2003 11:34:09 -0000 1.2.2.1 +++ openacs-4/packages/dotlrn-homework/www/file.tcl 3 Apr 2004 00:22:06 -0000 1.2.2.2 @@ -62,7 +62,7 @@ set action_exists_p 0 db_multirow -extend {download_url} version version_info {} { - set download_url "${file_storage_url}/download/index?[export_vars {version_id}]" + set download_url "${file_storage_url}/download/$title?[export_vars {version_id}]" if { [string is true $delete_p] } { set action_exists_p 1 } Index: openacs-4/packages/dotlrn-homework/www/folder-chunk-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-homework/www/folder-chunk-oracle.xql,v diff -u -r1.2 -r1.2.2.1 --- openacs-4/packages/dotlrn-homework/www/folder-chunk-oracle.xql 29 Jun 2003 23:30:49 -0000 1.2 +++ openacs-4/packages/dotlrn-homework/www/folder-chunk-oracle.xql 3 Apr 2004 00:22:06 -0000 1.2.2.1 @@ -10,7 +10,7 @@ nvl(f.label, fs_tree.name) as name, fs_tree.live_revision as version_id, fs_tree.content_type, - r.content_length, + r.content_length, r.title, fs_tree.parent_id as folder_id, content_item.get_path(o.object_id) as item_path, lpad(' ',(the_level - 1), ' ') as spaces, Index: openacs-4/packages/dotlrn-homework/www/folder-chunk-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-homework/www/folder-chunk-postgresql.xql,v diff -u -r1.2 -r1.2.2.1 --- openacs-4/packages/dotlrn-homework/www/folder-chunk-postgresql.xql 29 Jun 2003 23:30:49 -0000 1.2 +++ openacs-4/packages/dotlrn-homework/www/folder-chunk-postgresql.xql 3 Apr 2004 00:22:06 -0000 1.2.2.1 @@ -10,7 +10,7 @@ coalesce(f.label, fs_tree.name) as name, fs_tree.live_revision as version_id, fs_tree.content_type, - r.content_length, + r.content_length, r.title, fs_tree.parent_id as folder_id, lpad(' ',(tree_level(fs_tree.tree_sortkey) - 1), ' ') as spaces, rels.related_object_id as homework_file_id, Index: openacs-4/packages/dotlrn-homework/www/folder-chunk.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-homework/www/folder-chunk.adp,v diff -u -r1.3 -r1.3.2.1 --- openacs-4/packages/dotlrn-homework/www/folder-chunk.adp 30 Oct 2003 12:21:44 -0000 1.3 +++ openacs-4/packages/dotlrn-homework/www/folder-chunk.adp 3 Apr 2004 00:22:06 -0000 1.3.2.1 @@ -54,7 +54,7 @@ @folders.name@ - @folders.spaces;noquote@ + @folders.spaces;noquote@ @folders.pretty_name@ Index: openacs-4/packages/dotlrn-homework/www/folder-chunk.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-homework/www/folder-chunk.tcl,v diff -u -r1.2 -r1.2.2.1 --- openacs-4/packages/dotlrn-homework/www/folder-chunk.tcl 30 Oct 2003 12:21:44 -0000 1.2 +++ openacs-4/packages/dotlrn-homework/www/folder-chunk.tcl 3 Apr 2004 00:22:06 -0000 1.2.2.1 @@ -78,12 +78,13 @@ # Strip off the user_id set pretty_name [dotlrn_homework::decode_name $name] + # If the user can read the file the user can read the file's details set view_details_url "${url}file?[export_vars {folder_id {file_id $object_id}}]" # And download the latest revision set file_storage_url [dotlrn_homework::get_file_storage_url] - set download_url "${file_storage_url}/download/index?[export_vars {version_id}]" + set download_url "${file_storage_url}/download/$title?[export_vars {version_id}]" # Admin and students can read correction files but only an admin can add one ... if { ![string equal $homework_file_id ""] } {