|
-
+
@contents.name@
Index: openacs-4/packages/file-storage/www/folder-chunk.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/folder-chunk.tcl,v
diff -u -r1.12 -r1.13
--- openacs-4/packages/file-storage/www/folder-chunk.tcl 17 May 2003 10:39:54 -0000 1.12
+++ openacs-4/packages/file-storage/www/folder-chunk.tcl 7 Jul 2003 12:37:39 -0000 1.13
@@ -26,16 +26,12 @@
set fs_url ""
}
-db_multirow contents select_folder_contents {} {
- set file_upload_name [fs::remove_special_file_system_characters -string $file_upload_name]
- set last_modified [lc_time_fmt $last_modified "%x %X"]
- set content_size [lc_numeric $content_size]
-}
-
set folder_name [fs::get_object_name -object_id $folder_id]
set content_size_total 0
+set root_folder_id [fs::get_root_folder]
+
db_multirow contents select_folder_contents {} {
set file_upload_name [fs::remove_special_file_system_characters -string $file_upload_name]
if { ![empty_string_p $content_size] } {
Index: openacs-4/packages/file-storage/www/view/index-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/view/index-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/file-storage/www/view/index-oracle.xql 7 Jul 2003 12:37:39 -0000 1.1
@@ -0,0 +1,15 @@
+
+
+
+ oracle8.1.6
+
+
+
+
+ select content_template.get_root_folder from dual
+
+
+
+
+
+
Index: openacs-4/packages/file-storage/www/view/index-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/view/index-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/file-storage/www/view/index-postgresql.xql 7 Jul 2003 12:37:39 -0000 1.1
@@ -0,0 +1,15 @@
+
+
+
+ postgresql7.1
+
+
+
+
+ select content_template__get_root_folder()
+
+
+
+
+
+
Index: openacs-4/packages/file-storage/www/view/index.vuh
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/view/index.vuh,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/file-storage/www/view/index.vuh 7 Jul 2003 12:37:39 -0000 1.1
@@ -0,0 +1,43 @@
+################## KLUDGE BY STAS ###############
+# Try and look up the item in the content repository
+#################################################
+ad_page_contract {
+
+ @author Unknown
+ @creation-date Unknown
+ @cvs-id $Id: index.vuh,v 1.1 2003/07/07 12:37:39 olah Exp $
+} {
+ { revision_id "" }
+}
+
+# Get the paths
+set the_root [ns_info pageroot]
+set the_url [ad_conn path_info]
+set content_type "content_revision"
+
+
+# Get the IDs
+set content_root [fs::get_root_folder]
+set template_root [db_string template_root ""]
+
+
+# Serve the page
+
+# DRB: Note that content::init modifies the local variable the_root, which is treated
+# as though it's been passed by reference. This requires that the redirect treat the
+# path as an absolute path within the filesystem.
+
+if { [content::init the_url the_root $content_root $template_root public $revision_id $content_type] } {
+ set file "$the_root/$the_url"
+ rp_internal_redirect -absolute_path $file
+} else {
+ # ns_returnnotfound
+ set page "[ad_header {Content Item Not Found}]"
+ append page "Content Item Not Found"
+ append page "The requested item is not available for viewing. "
+ append page "The item is either not available on this server or it is not in a publishable state "
+ append page "Unpublished items can be viewed via the CMS interface if the CMS package is installed. "
+ append page "[ad_footer]"
+ doc_return 200 text/html $page
+}
+
|