Index: openacs-4/packages/acs-developer-support/tcl/acs-developer-support-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/tcl/acs-developer-support-init.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-developer-support/tcl/acs-developer-support-init.tcl 4 Feb 2005 13:34:40 -0000 1.6 +++ openacs-4/packages/acs-developer-support/tcl/acs-developer-support-init.tcl 21 Dec 2008 18:09:53 -0000 1.7 @@ -7,14 +7,14 @@ # Make sure we do the setup only once if { ![nsv_exists ds_properties enabled_p] } { ad_register_filter -critical t -priority 999999 trace * /* ds_trace_filter - ad_schedule_proc [ad_parameter -package_id [ds_instance_id] DataSweepInterval acs-developer-support 900] ds_sweep_data + ad_schedule_proc [parameter::get -package_id [ds_instance_id] -parameter DataSweepInterval -default 900] ds_sweep_data nsv_array set ds_request [list] - nsv_set ds_properties enabled_p [ad_parameter -package_id [ds_instance_id] EnabledOnStartupP acs-developer-support 0] + nsv_set ds_properties enabled_p [parameter::get -package_id [ds_instance_id] -parameter EnabledOnStartupP -default 0] # Take the IP list (space or comma seperated) and turn it into a tcl list. set IPs [list] - foreach ip [lsort -unique [split [ad_parameter -package_id [ds_instance_id] EnabledIPs acs-developer-support *] { ,}]] { + foreach ip [lsort -unique [split [parameter::get -package_id [ds_instance_id] -parameter EnabledIPs -default *] { ,}]] { if {[string equal $ip "*"]} { # a star means anything will match so just use the * instead set IPs "*" @@ -26,13 +26,13 @@ nsv_set ds_properties enabled_ips $IPs - nsv_set ds_properties database_enabled_p [ad_parameter -package_id [ds_instance_id] DatabaseEnabledP developer-support 0] + nsv_set ds_properties database_enabled_p [parameter::get -package_id [ds_instance_id] -parameter DatabaseEnabledP -default 0] - nsv_set ds_properties adp_reveal_enabled_p [ad_parameter -package_id [ds_instance_id] AdpRevealEnabledP developer-support 0] + nsv_set ds_properties adp_reveal_enabled_p [parameter::get -package_id [ds_instance_id] -parameter AdpRevealEnabledP -default 0] - nsv_set ds_properties page_fragment_cache_p [ad_parameter -package_id [ds_instance_id] PageFragmentCacheP developer-support 0] + nsv_set ds_properties page_fragment_cache_p [parameter::get -package_id [ds_instance_id] -parameter PageFragmentCacheP -default 0] - ds_set_user_switching_enabled [ad_parameter -package_id [ds_instance_id] UserSwitchingEnabledP acs-developer-support 0] + ds_set_user_switching_enabled [parameter::get -package_id [ds_instance_id] -parameter UserSwitchingEnabledP -default 0] # JCD: used to cache rendered page bits. cap at 10mb for now. ns_cache create ds_page_bits -size 10000000 Index: openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl,v diff -u -r1.48 -r1.49 --- openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl 9 Nov 2008 23:29:22 -0000 1.48 +++ openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl 21 Dec 2008 18:09:53 -0000 1.49 @@ -216,7 +216,7 @@ } } - if { [ad_parameter -package_id [ds_instance_id] ShowCommentsInlineP acs-developer-support 0] } { + if { [parameter::get -package_id [ds_instance_id] -parameter ShowCommentsInlineP -default 0] } { append out "Comments: On | Off
" if { [nsv_exists ds_request "$ad_conn(request).comment"] } { foreach comment [nsv_get ds_request "$ad_conn(request).comment"] { @@ -373,7 +373,7 @@ ad_proc -private ds_sweep_data {} { set now [ns_time] - set lifetime [ad_parameter -package_id [ds_instance_id] DataLifetime acs-developer-support 900] + set lifetime [parameter::get -package_id [ds_instance_id] -parameter DataLifetime -default 900] # Find the last request before the DataLifetime cutoff Index: openacs-4/packages/acs-developer-support/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/www/index.tcl,v diff -u -r1.16 -r1.17 --- openacs-4/packages/acs-developer-support/www/index.tcl 26 Feb 2005 17:52:20 -0000 1.16 +++ openacs-4/packages/acs-developer-support/www/index.tcl 21 Dec 2008 18:09:53 -0000 1.17 @@ -58,8 +58,8 @@ append body " -
  • Information is being swept every [ad_parameter DataSweepInterval "developer-support" 900] sec -and has a lifetime of [ad_parameter DataLifetime "developer-support" 900] sec +
  • Information is being swept every [parameter::get -parameter DataSweepInterval -default 900] sec +and has a lifetime of [parameter::get -parameter DataLifetime -default 900] sec
  • Set package parameters Index: openacs-4/packages/acs-developer-support/www/request-info.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/www/request-info.tcl,v diff -u -r1.14 -r1.15 --- openacs-4/packages/acs-developer-support/www/request-info.tcl 11 Apr 2008 19:51:46 -0000 1.14 +++ openacs-4/packages/acs-developer-support/www/request-info.tcl 21 Dec 2008 18:09:53 -0000 1.15 @@ -39,7 +39,7 @@ Request Start Time: [clock format [lindex $property(start) 0] -format "%Y-%m-%d %H:%M:%S"]\n" } else { append body "The information for this request is gone - either the server has been restarted, or -the request is more than [ad_parameter DeveloperSupportLifetime "" 900] seconds old. +the request is more than [parameter::get -parameter DeveloperSupportLifetime -default 900] seconds old. [ad_admin_footer]" return } Index: openacs-4/packages/categories/tcl/categories-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/categories/tcl/categories-procs.tcl,v diff -u -r1.26 -r1.27 --- openacs-4/packages/categories/tcl/categories-procs.tcl 8 Nov 2008 17:05:38 -0000 1.26 +++ openacs-4/packages/categories/tcl/categories-procs.tcl 21 Dec 2008 18:05:35 -0000 1.27 @@ -52,7 +52,7 @@ db_transaction { set category_id [db_exec_plsql insert_category ""] set translations [list $locale $name] - set default_locale [ad_parameter DefaultLocale acs-lang "en_US"] + set default_locale [parameter::get -parameter DefaultLocale -default en_US] if {$locale != $default_locale} { lappend translations $default_locale $name db_exec_plsql insert_default_category "" @@ -328,7 +328,7 @@ } # Resort to en_US - if { ![catch { set name $cat_lang([ad_parameter DefaultLocale acs-lang "en_US"]) }] } { + if { ![catch { set name $cat_lang([parameter::get -parameter DefaultLocale -default en_US]) }] } { return $name } Index: openacs-4/packages/categories/tcl/category-trees-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/categories/tcl/category-trees-procs.tcl,v diff -u -r1.24 -r1.25 --- openacs-4/packages/categories/tcl/category-trees-procs.tcl 8 Nov 2008 17:05:38 -0000 1.24 +++ openacs-4/packages/categories/tcl/category-trees-procs.tcl 21 Dec 2008 18:05:35 -0000 1.25 @@ -154,7 +154,7 @@ db_transaction { set tree_id [db_exec_plsql insert_tree ""] - set default_locale [ad_parameter DefaultLocale acs-lang "en_US"] + set default_locale [parameter::get -parameter DefaultLocale -default en_US] if {$locale != $default_locale} { db_exec_plsql insert_default_tree "" } @@ -469,7 +469,7 @@ # exact match: found name for this locale return $names } - if {![catch {set names $tree_lang([ad_parameter DefaultLocale acs-lang "en_US"])}]} { + if {![catch {set names $tree_lang([parameter::get -parameter DefaultLocale -default en_US])}]} { # default locale found return $names } Index: openacs-4/packages/categories/tcl/tagcloud-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/categories/tcl/tagcloud-procs.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/categories/tcl/tagcloud-procs.tcl 8 Nov 2008 17:05:38 -0000 1.3 +++ openacs-4/packages/categories/tcl/tagcloud-procs.tcl 21 Dec 2008 18:05:35 -0000 1.4 @@ -94,7 +94,7 @@ set user_locale [ad_conn locale] set user_id [ad_conn user_id] - set default_locale [ad_parameter DefaultLocale acs-lang "en_US"] + set default_locale [parameter::get -parameter DefaultLocale -default en_US] ns_log Warning "def loc $default_locale" # this whole locale thing isn't handled well. Index: openacs-4/packages/categories/www/cadmin/category-form.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/categories/www/cadmin/category-form.tcl,v diff -u -r1.8 -r1.9 --- openacs-4/packages/categories/www/cadmin/category-form.tcl 6 Nov 2008 15:50:44 -0000 1.8 +++ openacs-4/packages/categories/www/cadmin/category-form.tcl 21 Dec 2008 18:05:35 -0000 1.9 @@ -44,7 +44,7 @@ set description "" } -edit_request { if {![db_0or1row check_translation_existance ""]} { - set default_locale [ad_parameter DefaultLocale acs-lang "en_US"] + set default_locale [parameter::get -parameter DefaultLocale -default en_US] db_1row get_default_translation "" } } -on_submit { Index: openacs-4/packages/categories/www/cadmin/master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/categories/www/cadmin/master.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/categories/www/cadmin/master.tcl 6 Nov 2008 15:56:13 -0000 1.9 +++ openacs-4/packages/categories/www/cadmin/master.tcl 21 Dec 2008 18:05:35 -0000 1.10 @@ -7,7 +7,7 @@ } if {![exists_and_not_null locale]} { - #set locale [ad_parameter DefaultLocale acs-lang "en_US"] + #set locale [parameter::get -parameter DefaultLocale -default en_US] set locale [ad_conn locale] } Index: openacs-4/packages/categories/www/cadmin/synonym-form.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/categories/www/cadmin/synonym-form.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/categories/www/cadmin/synonym-form.tcl 7 Nov 2008 16:51:00 -0000 1.4 +++ openacs-4/packages/categories/www/cadmin/synonym-form.tcl 21 Dec 2008 18:05:35 -0000 1.5 @@ -47,7 +47,7 @@ if {![empty_string_p [ad_conn locale]]} { set language [ad_conn locale] } else { - set language [ad_parameter DefaultLocale acs-lang "en_US"] + set language [parameter::get -parameter DefaultLocale -default en_US] } } -edit_request { db_1row get_synonym ""