Index: openacs-4/packages/dotlrn/tcl/class-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/class-procs.tcl,v diff -u -r1.35 -r1.36 --- openacs-4/packages/dotlrn/tcl/class-procs.tcl 16 May 2002 13:29:14 -0000 1.35 +++ openacs-4/packages/dotlrn/tcl/class-procs.tcl 18 May 2002 22:42:11 -0000 1.36 @@ -253,19 +253,16 @@ ] } - ad_proc -public can_create { - } { + ad_proc -public can_create {} { can a class be created? essentially, does at least one department exist? } { return [db_string can_create {}] } - ad_proc -public can_instantiate { - {-class_key:required} + ad_proc -public can_instantiate {} { + can we instantiate classes? essentially, are there any current terms? } { - can this class be instantiated? - } { return [db_string can_instantiate {}] } Index: openacs-4/packages/dotlrn/tcl/community-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/community-procs.tcl,v diff -u -r1.120 -r1.121 --- openacs-4/packages/dotlrn/tcl/community-procs.tcl 15 May 2002 17:47:13 -0000 1.120 +++ openacs-4/packages/dotlrn/tcl/community-procs.tcl 18 May 2002 22:42:11 -0000 1.121 @@ -57,9 +57,9 @@ dotlrn_community::set_type_package_id $community_type $package_id - ad_parameter -package_id $package_id -set 0 dotlrn_level_p - ad_parameter -package_id $package_id -set 1 community_type_level_p - ad_parameter -package_id $package_id -set 0 community_level_p + dotlrn::parameter -package_id $package_id -set 0 dotlrn_level_p + dotlrn::parameter -package_id $package_id -set 1 community_type_level_p + dotlrn::parameter -package_id $package_id -set 0 community_level_p # create a "dummy" community for this community # type to get a portal template with all of the @@ -114,9 +114,9 @@ ] # Set some parameters - ad_parameter -package_id $package_id -set 0 dotlrn_level_p - ad_parameter -package_id $package_id -set 1 community_type_level_p - ad_parameter -package_id $package_id -set 0 community_level_p + dotlrn::parameter -package_id $package_id -set 0 dotlrn_level_p + dotlrn::parameter -package_id $package_id -set 1 community_type_level_p + dotlrn::parameter -package_id $package_id -set 0 community_level_p # Set the site node dotlrn_community::set_type_package_id $community_type_key $package_id @@ -312,9 +312,9 @@ ] # Set the right parameters - ad_parameter -package_id $package_id -set 0 dotlrn_level_p - ad_parameter -package_id $package_id -set 0 community_type_level_p - ad_parameter -package_id $package_id -set 1 community_level_p + dotlrn::parameter -package_id $package_id -set 0 dotlrn_level_p + dotlrn::parameter -package_id $package_id -set 0 community_type_level_p + dotlrn::parameter -package_id $package_id -set 1 community_level_p # Set up the node dotlrn_community::set_package_id $community_id $package_id @@ -1500,9 +1500,9 @@ ] # Set the right parameters - ad_parameter -package_id $package_id -set 0 dotlrn_level_p - ad_parameter -package_id $package_id -set 0 community_type_level_p - ad_parameter -package_id $package_id -set 1 community_level_p + dotlrn::parameter -package_id $package_id -set 0 dotlrn_level_p + dotlrn::parameter -package_id $package_id -set 0 community_type_level_p + dotlrn::parameter -package_id $package_id -set 1 community_level_p # Set up the node dotlrn_community::set_package_id $clone_id $package_id @@ -1707,7 +1707,7 @@ if {![empty_string_p $reorder_hack_p]} { ns_log notice "aks1: applets_dispatch: reorder hack!" - set reorder_applets_string [ad_parameter user_wsp_applet_ordering "dotlrn" "dotlrn_news,dotlrn_bboard,dotlrn_survey,dotlrn_faq"] + set reorder_applets_string [dotlrn::parameter user_wsp_applet_ordering -default "dotlrn_news,dotlrn_bboard,dotlrn_survey,dotlrn_faq"] set reorder_applets_list [string trim [split $reorder_applets_string {,}]] Index: openacs-4/packages/dotlrn/tcl/dotlrn-main-portlet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/dotlrn-main-portlet-procs.tcl,v diff -u -r1.22 -r1.23 --- openacs-4/packages/dotlrn/tcl/dotlrn-main-portlet-procs.tcl 12 May 2002 18:17:56 -0000 1.22 +++ openacs-4/packages/dotlrn/tcl/dotlrn-main-portlet-procs.tcl 18 May 2002 22:42:11 -0000 1.23 @@ -35,7 +35,7 @@ ad_proc -public get_pretty_name { } { - return [ad_parameter dotlrn_main_portlet_pretty_name] + return [dotlrn::parameter dotlrn_main_portlet_pretty_name] } ad_proc -public link { @@ -51,7 +51,7 @@ # we use "portal::add_element" here since there is no # configuration necessary for this portlet (no params) return [portal::add_element \ - -force_region [ad_parameter "dotlrn_main_portlet_region" dotlrn] \ + -force_region [dotlrn::parameter dotlrn_main_portlet_region] \ -pretty_name [get_pretty_name] \ -portal_id $portal_id \ -portlet_name [get_my_name] \ Index: openacs-4/packages/dotlrn/tcl/dotlrn-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/dotlrn-procs.tcl,v diff -u -r1.53 -r1.54 --- openacs-4/packages/dotlrn/tcl/dotlrn-procs.tcl 16 May 2002 13:29:15 -0000 1.53 +++ openacs-4/packages/dotlrn/tcl/dotlrn-procs.tcl 18 May 2002 22:42:11 -0000 1.54 @@ -50,7 +50,7 @@ } { Returns the group_type key that is being used for class management } { - return [parameter "group_type_key"] + return [parameter group_type_key] } ad_proc -public package_key {} { @@ -369,15 +369,16 @@ ad_proc -public parameter { -set + {-package_id ""} {-default ""} name } { wrap ad_parameter } { if {[info exists set]} { - return [ad_parameter -set -package_id [get_package_id] -default $default $name] + return [parameter::set_value -package_id $package_id -parameter $name -value $set] } else { - return [ad_parameter -package_id [get_package_id] $name] + return [parameter::get -package_id $package_id -parameter $name -default $default] } } Index: openacs-4/packages/dotlrn/tcl/dotlrn-user-extension-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/dotlrn-user-extension-procs.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn/tcl/dotlrn-user-extension-procs.tcl 29 Mar 2002 19:14:45 -0000 1.3 +++ openacs-4/packages/dotlrn/tcl/dotlrn-user-extension-procs.tcl 18 May 2002 22:42:11 -0000 1.4 @@ -37,7 +37,7 @@ ad_proc -public automatic_email_patterns {} { Returns a list of email patterns for which a user is automatically made into a dotLRN user } { - set param [ad_parameter -package_id [dotlrn::get_package_id] auto_dotlrn_user_email_patterns] + set param [dotlrn::parameter -package_id [dotlrn::get_package_id] auto_dotlrn_user_email_patterns] return [split $param ","] } Index: openacs-4/packages/dotlrn/tcl/navigation-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/navigation-procs.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn/tcl/navigation-procs.tcl 29 Mar 2002 19:14:45 -0000 1.7 +++ openacs-4/packages/dotlrn/tcl/navigation-procs.tcl 18 May 2002 22:42:11 -0000 1.8 @@ -78,9 +78,9 @@ lappend first_args [list [root_url] dotLRN] if {[string equal ${community_type} "dotlrn_class_instance"] != 0} { - lappend first_args [list [dotlrn_community::get_community_type_url $community_type] [ad_parameter classes_pretty_plural]] + lappend first_args [list [dotlrn_community::get_community_type_url $community_type] [dotlrn::parameter classes_pretty_plural]] } elseif {[string equal ${community_type} "dotlrn_club"] != 0} { - lappend first_args [list [dotlrn_community::get_community_type_url $community_type] [ad_parameter clubs_pretty_plural]] + lappend first_args [list [dotlrn_community::get_community_type_url $community_type] [dotlrn::parameter clubs_pretty_plural]] } elseif {[string equal ${community_type} "dotlrn_community"] != 0} { } else { lappend first_args [list [dotlrn_community::get_community_type_url $community_type] [dotlrn_community::get_community_type_name $community_type]] Index: openacs-4/packages/dotlrn/www/applets-chunk.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/applets-chunk.adp,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn/www/applets-chunk.adp 29 Mar 2002 19:14:46 -0000 1.3 +++ openacs-4/packages/dotlrn/www/applets-chunk.adp 18 May 2002 22:42:11 -0000 1.4 @@ -34,11 +34,10 @@ Index: openacs-4/packages/dotlrn/www/community-type.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-type.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/dotlrn/www/community-type.tcl 29 Mar 2002 19:14:46 -0000 1.6 +++ openacs-4/packages/dotlrn/www/community-type.tcl 18 May 2002 22:42:11 -0000 1.7 @@ -24,7 +24,7 @@ } # Check that this is a community type -if {[ad_parameter community_type_level_p] != 1} { +if {[dotlrn::parameter community_type_level_p] != 1} { ad_returnredirect "./" ad_script_abort } Index: openacs-4/packages/dotlrn/www/community.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/community.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn/www/community.tcl 6 May 2002 23:55:02 -0000 1.7 +++ openacs-4/packages/dotlrn/www/community.tcl 18 May 2002 22:42:11 -0000 1.8 @@ -23,7 +23,7 @@ } # Check that this is a community type -if {[ad_parameter community_level_p] != 1} { +if {[dotlrn::parameter community_level_p] != 1} { ns_returnredirect "./" return } Index: openacs-4/packages/dotlrn/www/configure-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure-2.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn/www/configure-2.tcl 8 May 2002 14:35:07 -0000 1.7 +++ openacs-4/packages/dotlrn/www/configure-2.tcl 18 May 2002 22:42:11 -0000 1.8 @@ -29,7 +29,7 @@ set anchor [ns_set get $form anchor] # Check if this is a community type level thing -if {[ad_parameter community_type_level_p] == 1} { +if {[dotlrn::parameter community_type_level_p] == 1} { ad_returnredirect "one-community-type" return } Index: openacs-4/packages/dotlrn/www/configure-element-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure-element-2.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/dotlrn/www/configure-element-2.tcl 6 May 2002 23:55:02 -0000 1.5 +++ openacs-4/packages/dotlrn/www/configure-element-2.tcl 18 May 2002 22:42:11 -0000 1.6 @@ -27,7 +27,7 @@ } # Check if this is a community type level thing -if {[ad_parameter community_type_level_p] == 1} { +if {[dotlrn::parameter community_type_level_p] == 1} { ad_returnredirect "one-community-type" return } Index: openacs-4/packages/dotlrn/www/configure-element.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure-element.tcl,v diff -u -r1.8 -r1.9 --- openacs-4/packages/dotlrn/www/configure-element.tcl 6 May 2002 23:55:02 -0000 1.8 +++ openacs-4/packages/dotlrn/www/configure-element.tcl 18 May 2002 22:42:11 -0000 1.9 @@ -26,15 +26,15 @@ } # Check if this is a community type level thing -if {[ad_parameter community_type_level_p] == 1} { +if {[dotlrn::parameter community_type_level_p] == 1} { ad_returnredirect "one-community-type" return } # Make sure user is logged in set user_id [ad_maybe_redirect_for_registration] -if {[ad_parameter community_level_p] == 1} { +if {[dotlrn::parameter community_level_p] == 1} { # This is a community # What community type are we at? set community_id [dotlrn_community::get_community_id] Index: openacs-4/packages/dotlrn/www/configure.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn/www/configure.tcl 12 May 2002 21:24:01 -0000 1.9 +++ openacs-4/packages/dotlrn/www/configure.tcl 18 May 2002 22:42:11 -0000 1.10 @@ -26,15 +26,15 @@ } # Check if this is a community type level thing -if {[ad_parameter community_type_level_p] == 1} { +if {[dotlrn::parameter community_type_level_p] == 1} { ad_returnredirect "one-community-type" return } # Make sure user is logged in set user_id [ad_maybe_redirect_for_registration] -if {[ad_parameter community_level_p] == 1} { +if {[dotlrn::parameter community_level_p] == 1} { # This is a community # What community type are we at? set community_id [dotlrn_community::get_community_id] Index: openacs-4/packages/dotlrn/www/dotlrn-default-master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/dotlrn-default-master.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/dotlrn/www/dotlrn-default-master.tcl 7 May 2002 15:48:44 -0000 1.6 +++ openacs-4/packages/dotlrn/www/dotlrn-default-master.tcl 18 May 2002 22:42:11 -0000 1.7 @@ -135,7 +135,7 @@ set navbar "
" set portal_id "" } -} elseif {[ad_parameter -package_id [ad_conn package_id] community_type_level_p] == 1} { +} elseif {[dotlrn::parameter -package_id [ad_conn package_id] community_type_level_p] == 1} { set extra_td_html "" set link_all 1 set link [dotlrn::get_url] @@ -214,7 +214,7 @@ } # in a community or just under one in a mounted package like /calendar -if {[ad_parameter community_level_p] == 1 || $parent_comm_p } { +if {[dotlrn::parameter community_level_p] == 1 || $parent_comm_p } { set community_id [dotlrn_community::get_community_id] # color hack @@ -236,7 +236,7 @@ # The header text is the name of the community set text [dotlrn_community::get_community_header_name $community_id] -} elseif {[ad_parameter community_type_level_p] == 1} { +} elseif {[dotlrn::parameter community_type_level_p] == 1} { # in a community type set text \ [dotlrn_community::get_community_type_name [dotlrn_community::get_community_type]] Index: openacs-4/packages/dotlrn/www/dotlrn-main-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/dotlrn-main-portlet.adp,v diff -u -r1.24 -r1.25 --- openacs-4/packages/dotlrn/www/dotlrn-main-portlet.adp 7 Apr 2002 06:09:35 -0000 1.24 +++ openacs-4/packages/dotlrn/www/dotlrn-main-portlet.adp 18 May 2002 22:42:11 -0000 1.25 @@ -51,10 +51,10 @@ <% set old_level [expr $new_level - 1] %> -
  • <%= [ad_parameter "class_instances_pretty_plural"] %>: +
  • <%= [dotlrn::parameter class_instances_pretty_plural] %>: -
  • <%= [ad_parameter "clubs_pretty_plural"] %>: +
  • <%= [dotlrn::parameter clubs_pretty_plural] %>: @@ -65,7 +65,9 @@
  • @communities.pretty_name@ - [admin] + [ + Administer + ]
  • Index: openacs-4/packages/dotlrn/www/folder-chunk.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/folder-chunk.adp,v diff -u -r1.4 -r1.5 --- openacs-4/packages/dotlrn/www/folder-chunk.adp 4 Apr 2002 03:01:45 -0000 1.4 +++ openacs-4/packages/dotlrn/www/folder-chunk.adp 18 May 2002 22:42:11 -0000 1.5 @@ -51,7 +51,10 @@ ( new ) - [ edit | delete ] + [ + Edit +  | Delete + ]   @contents.type@ @@ -64,7 +67,10 @@ ( new ) - [ download | delete ] + [ + Download +  | Delete + ] @contents.content_size@ bytes @contents.type@ Index: openacs-4/packages/dotlrn/www/index-not-a-user.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/index-not-a-user.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn/www/index-not-a-user.tcl 8 May 2002 14:35:07 -0000 1.7 +++ openacs-4/packages/dotlrn/www/index-not-a-user.tcl 18 May 2002 22:42:11 -0000 1.8 @@ -28,6 +28,6 @@ set admin_p [dotlrn::admin_p] set admin_url [dotlrn::get_url]/admin -set admin_pretty_name [ad_parameter "dotlrn_admin_pretty_name"] +set admin_pretty_name [dotlrn::parameter dotlrn_admin_pretty_name] ad_return_template Index: openacs-4/packages/dotlrn/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/index.tcl,v diff -u -r1.31 -r1.32 --- openacs-4/packages/dotlrn/www/index.tcl 28 Apr 2002 04:08:42 -0000 1.31 +++ openacs-4/packages/dotlrn/www/index.tcl 18 May 2002 22:42:11 -0000 1.32 @@ -27,13 +27,13 @@ } # Check if this is a community type level thing -if {[ad_parameter community_type_level_p] == 1} { +if {[dotlrn::parameter community_type_level_p] == 1} { ad_returnredirect "one-community-type" ad_script_abort } # Check if this is a community level thing -if {[ad_parameter community_level_p] == 1} { +if {[dotlrn::parameter community_level_p] == 1} { ad_returnredirect "one-community?page_num=$page_num" ad_script_abort } Index: openacs-4/packages/dotlrn/www/manage-memberships.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/manage-memberships.adp,v diff -u -r1.10 -r1.11 --- openacs-4/packages/dotlrn/www/manage-memberships.adp 16 May 2002 16:35:38 -0000 1.10 +++ openacs-4/packages/dotlrn/www/manage-memberships.adp 18 May 2002 22:42:11 -0000 1.11 @@ -28,7 +28,10 @@ Current <%= [dotlrn::parameter clubs_pretty_plural] %> | - Join a Group + Join a <%= [dotlrn::parameter class_instances_pretty_name] %> + | + Join a <%= [dotlrn::parameter clubs_pretty_name] %> +

    Index: openacs-4/packages/dotlrn/www/members-chunk-table.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/members-chunk-table.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/members-chunk-table.adp 4 May 2002 12:21:58 -0000 1.2 +++ openacs-4/packages/dotlrn/www/members-chunk-table.adp 18 May 2002 22:42:11 -0000 1.3 @@ -57,9 +57,11 @@   @pending_users.role@   - [ -  |  - ] + [ + + | + + ] Index: openacs-4/packages/dotlrn/www/members-chunk.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/members-chunk.adp,v diff -u -r1.13 -r1.14 --- openacs-4/packages/dotlrn/www/members-chunk.adp 15 Apr 2002 19:52:52 -0000 1.13 +++ openacs-4/packages/dotlrn/www/members-chunk.adp 18 May 2002 22:42:11 -0000 1.14 @@ -31,7 +31,9 @@ @users.role@   - [] + [ + + ] @@ -74,9 +76,11 @@   @pending_users.role@   - [ -  |  - ] + [ + + | + + ] Index: openacs-4/packages/dotlrn/www/my-communities.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/my-communities.adp,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn/www/my-communities.adp 5 Apr 2002 21:52:34 -0000 1.9 +++ openacs-4/packages/dotlrn/www/my-communities.adp 18 May 2002 22:42:11 -0000 1.10 @@ -20,20 +20,30 @@

    My Communities@title@

    - @@ -61,7 +60,7 @@ - <%= [ad_parameter departments_pretty_name] %>:  + <%= [dotlrn::parameter departments_pretty_name] %>:  @@ -77,12 +76,12 @@ - - + + - + @@ -93,7 +92,7 @@ - +
    <%= [ad_parameter departments_pretty_name] %><%= [ad_parameter classes_pretty_name] %><%= [dotlrn::parameter departments_pretty_name] %><%= [dotlrn::parameter classes_pretty_name] %> Term <%= [ad_parameter class_instances_pretty_name] %><%= [dotlrn::parameter class_instances_pretty_name] %> Actions
    @classes.term_name@ @classes.term_year@ @classes.pretty_name@[admin][ Administer ]
    Index: openacs-4/packages/dotlrn/www/admin/terms.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/terms.adp,v diff -u -r1.10 -r1.11 --- openacs-4/packages/dotlrn/www/admin/terms.adp 29 Mar 2002 19:14:47 -0000 1.10 +++ openacs-4/packages/dotlrn/www/admin/terms.adp 18 May 2002 22:42:11 -0000 1.11 @@ -22,7 +22,7 @@ Terms @context_bar@ -[New Term] +[ New Term ]

    @@ -46,5 +46,5 @@
    -[New Term] +[ New Term ] Index: openacs-4/packages/dotlrn/www/admin/user.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/user.adp,v diff -u -r1.10 -r1.11 --- openacs-4/packages/dotlrn/www/admin/user.adp 8 May 2002 14:35:07 -0000 1.10 +++ openacs-4/packages/dotlrn/www/admin/user.adp 18 May 2002 22:42:11 -0000 1.11 @@ -29,19 +29,19 @@
  • Name: @first_names@ @last_name@ - [edit] + [ Edit ]
  • Email: @email@ - [edit] + [ Edit ]
  • Screen name: @screen_name@ - [edit] + [ Edit ]
  • @@ -63,8 +63,7 @@
  • - Portrait: - @portrait_title@ + Portrait: @portrait_title@
  • @@ -105,15 +104,14 @@
  • - Edit dotLRN properties for this - user. + Edit dotLRN properties for this user.
  • -

    <%= [ad_parameter "class_instances_pretty_name"] %> Memberships

    +

    <%= [dotlrn::parameter class_instances_pretty_name] %> Memberships

      @@ -129,7 +127,7 @@
      -

      <%= [ad_parameter "clubs_pretty_name"] %> Memberships

      +

      <%= [dotlrn::parameter clubs_pretty_name] %> Memberships

        @@ -144,7 +142,7 @@
        -

        <%= [ad_parameter "subcommunities_pretty_name"] %> Memberships

        +

        <%= [dotlrn::parameter subcommunities_pretty_name] %> Memberships