Index: openacs-4/packages/acs-content-repository/acs-content-repository.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/acs-content-repository.info,v
diff -u -r1.69 -r1.70
--- openacs-4/packages/acs-content-repository/acs-content-repository.info 29 Aug 2007 18:28:15 -0000 1.69
+++ openacs-4/packages/acs-content-repository/acs-content-repository.info 30 Aug 2007 10:21:57 -0000 1.70
@@ -7,7 +7,7 @@
t
t
-
+
OpenACS
The canonical repository for OpenACS content.
2007-04-22
@@ -20,15 +20,16 @@
GPL
3
-
+
-
+
+
Index: openacs-4/packages/acs-content-repository/tcl/acs-content-repository-callback-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/acs-content-repository-callback-procs.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/acs-content-repository/tcl/acs-content-repository-callback-procs.tcl 29 Aug 2007 18:28:16 -0000 1.4
+++ openacs-4/packages/acs-content-repository/tcl/acs-content-repository-callback-procs.tcl 30 Aug 2007 10:21:57 -0000 1.5
@@ -35,18 +35,21 @@
if {$package_key eq "acs-content-repository" && $parameter eq "CRFileLocationRoot" && $value ne ""} {
nsv_unset CR_LOCATIONS CR_FILES
- # Take the directory from the FileLocation parameter that
- # must be specified in acs-content-repository package.
- set relativepath_p [parameter::get -package_id $package_id -parameter FileLocationRelative]
- set file_location ""
- if {$relativepath_p} {
- append file_location "[acs_root_dir]/"
- }
- append file_location "[parameter::get -package_id $package_id -parameter FileLocation]"
- nsv_set CR_LOCATIONS CR_FILES "$file_location"
-
- } else {
- ns_log Debug "subsite::parameter_changed -impl acs-content-repository don't care about $parameter"
+ # Take the directory from the FileLocation parameter that
+ # must be specified in acs-content-repository package.
+ set relativepath_p [parameter::get_from_package_key -package_key "acs-content-repository" -parameter FileLocationRelativeP]
+ set file_location ""
+
+ if {$relativepath_p} {
+ # The file location is relative to acs_root_dir
+ append file_location "[acs_root_dir]/"
+ }
+ append file_location [parameter::get_from_package_key -package_key "acs-content-repository" -parameter "CRFileLocationRoot" -default "content-repository-content-files"]
+
+ nsv_set CR_LOCATIONS CR_FILES "$file_location"
+
+ } else {
+ ns_log Debug "subsite::parameter_changed -impl acs-content-repository don't care about $parameter"
}
}
Index: openacs-4/packages/acs-content-repository/tcl/acs-content-repository-init.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/acs-content-repository-init.tcl,v
diff -u -r1.12 -r1.13
--- openacs-4/packages/acs-content-repository/tcl/acs-content-repository-init.tcl 29 Aug 2007 18:28:16 -0000 1.12
+++ openacs-4/packages/acs-content-repository/tcl/acs-content-repository-init.tcl 30 Aug 2007 10:21:57 -0000 1.13
@@ -25,20 +25,21 @@
}
ad_schedule_proc [expr {15 * 60}] acs_cr_scheduled_release_exec
-
-set file_location [parameter::get_from_package_key -package_key "acs-content-repository" -parameter "CRFileLocationRoot" -default "content-repository-content-files"]
nsv_set CR_LOCATIONS . ""
-if {![nsv_exists CR_LOCATIONS CR_FILES]} {
+if {![nsv_exists CR_LOCATIONS CR_FILES]} {
+
# Take the directory from the FileLocation parameter that
# must be specified in acs-content-repository package.
- set relativepath_p [parameter::get_from_package_key -package_key "acs-content-repository" -parameter FileLocationRelative]
- set file_location ""
- if {$relativepath_p} {
- append file_location "[acs_root_dir]/"
- }
- append file_location "[parameter::get_from_package_key -package_key "acs-content-repository" -parameter FileLocation]"
-
+ set relativepath_p [parameter::get_from_package_key -package_key "acs-content-repository" -parameter FileLocationRelativeP]
+ set file_location ""
+
+ if {$relativepath_p} {
+ # The file location is relative to acs_root_dir
+ append file_location "[acs_root_dir]/"
+ }
+ append file_location [parameter::get_from_package_key -package_key "acs-content-repository" -parameter "CRFileLocationRoot" -default "content-repository-content-files"]
+
nsv_set CR_LOCATIONS CR_FILES "$file_location"
}