Index: openacs-4/packages/bm-portlet/bm-portlet.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bm-portlet/bm-portlet.info,v diff -u -r1.6 -r1.7 --- openacs-4/packages/bm-portlet/bm-portlet.info 23 Jan 2003 11:32:32 -0000 1.6 +++ openacs-4/packages/bm-portlet/bm-portlet.info 29 May 2003 18:05:14 -0000 1.7 @@ -19,16 +19,6 @@ - - - - - - - - - - Index: openacs-4/packages/calendar-portlet/calendar-portlet.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar-portlet/calendar-portlet.info,v diff -u -r1.15 -r1.16 --- openacs-4/packages/calendar-portlet/calendar-portlet.info 7 Nov 2002 09:34:04 -0000 1.15 +++ openacs-4/packages/calendar-portlet/calendar-portlet.info 29 May 2003 18:05:21 -0000 1.16 @@ -19,34 +19,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - Index: openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl,v diff -u -r1.23 -r1.24 --- openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl 20 Nov 2002 17:24:31 -0000 1.23 +++ openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl 29 May 2003 18:05:21 -0000 1.24 @@ -14,7 +14,7 @@ # details. # -# www/calendar-portlet.tcl +# www/calendar-full-portlet.tcl ad_page_contract { The display logic for the calendar portlet @@ -27,8 +27,17 @@ {julian_date ""} } -properties { +} -validate { + valid_date -requires { date } { + if {![string equal $date ""]} { + if {[catch {set date [clock format [clock scan $date] -format "%Y-%m-%d"]} err]} { + ad_complain "Your input ($date) was not valid. It has to be in the form YYYYMMDD." + } + } + } } + # get stuff out of the config array array set config $cf if {[empty_string_p $view]} { @@ -44,7 +53,7 @@ } if {[llength $list_of_calendar_ids] > 1} { - set force_calendar_id [calendar_have_private_p -return_id 1 [ad_conn user_id]] + set force_calendar_id [calendar_have_private_p -return_id 1 -calendar_id_list $list_of_calendar_ids [ad_conn user_id]] } else { set force_calendar_id [lindex $list_of_calendar_ids 0] } @@ -82,9 +91,33 @@ } if {$view == "day"} { + + # Check that the previous and next days are in the tcl boundaries + # so that the calendar widget doesn't bomb when it creates the next/prev links + if {[catch {set yest [clock format [clock scan "1 day ago" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set previous_link "" + } else { + if {[catch {clock scan $yest}]} { + set previous_link "" + } else { + set previous_link "\"back" + } + } + + if {[catch {set tomor [clock format [clock scan "1 day" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set next_link "" + } else { + if {[catch {clock scan $tomor}]} { + set next_link "" + } else { + set next_link "\"forward" + } + } + + set cal_stuff [calendar::one_day_display \ - -prev_nav_template "\"back" \ - -next_nav_template "\"forward" \ + -prev_nav_template $previous_link \ + -next_nav_template $next_link \ -item_template $item_template \ -hour_template $hour_template \ -date $current_date -start_hour 7 -end_hour 22 \ @@ -94,28 +127,75 @@ } if {$view == "week"} { + + # Check that the previous and next weeks are in the tcl boundaries + # so that the calendar widget doesn't bomb when it creates the next/prev links + if {[catch {set last_w [clock format [clock scan "1 week ago" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set previous_link "" + } else { + if {[catch {clock scan $last_w}]} { + set previous_link "" + } else { + set previous_link "\"back" + } + } + + if {[catch {set next_w [clock format [clock scan "1 week" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set next_link "" + } else { + if {[catch {clock scan $next_w}]} { + set next_link "" + } else { + set next_link "\"forward" + } + } + set cal_stuff [calendar::one_week_display \ -item_template $item_template \ - -day_template "\"Add\$day - \$pretty_date" \ - -date $current_date \ - -calendar_id_list $list_of_calendar_ids \ - -url_stub_callback "calendar_portlet_display::get_url_stub" \ - -prev_week_template "\"back" \ - -next_week_template "\"forward" \ - -show_calendar_name_p $show_calendar_name_p + -day_template "\"Add\$day - \$pretty_date" \ + -date $current_date \ + -calendar_id_list $list_of_calendar_ids \ + -url_stub_callback "calendar_portlet_display::get_url_stub" \ + -prev_week_template "\"back" \ + -next_week_template "\"forward" \ + -show_calendar_name_p $show_calendar_name_p ] } if {$view == "month"} { + + # Check that the previous and next months are in the tcl boundaries + # so that the calendar widget doesn't bomb when it creates the next/prev links + if {[catch {set prev_m [clock format [clock scan "1 month ago" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set previous_link "" + } else { + if {[catch {clock scan $prev_m}]} { + set previous_link "" + } else { + set previous_link "\"back" + } + } + + if {[catch {set next_m [clock format [clock scan "1 month" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set next_link "" + } else { + if {[catch {clock scan $next_m}]} { + set next_link "" + } else { + set next_link "\"forward" + } + } + + set cal_stuff [calendar::one_month_display \ -item_template "$item_template" \ -day_template "\$day_number" \ -date $current_date \ -item_add_template "$item_add_template" \ -calendar_id_list $list_of_calendar_ids \ -url_stub_callback "calendar_portlet_display::get_url_stub" \ - -prev_month_template "\"back" \ - -next_month_template "\"forward" \ + -prev_month_template $previous_link \ + -next_month_template $next_link \ -show_calendar_name_p $show_calendar_name_p] } Index: openacs-4/packages/calendar-portlet/www/calendar-list-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar-portlet/www/calendar-list-portlet.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/calendar-portlet/www/calendar-list-portlet.tcl 16 Oct 2002 13:17:32 -0000 1.3 +++ openacs-4/packages/calendar-portlet/www/calendar-list-portlet.tcl 29 May 2003 18:05:21 -0000 1.4 @@ -28,8 +28,17 @@ {sort_by ""} } -properties { +} -validate { + valid_date -requires { date } { + if {![string equal $date ""]} { + if {[catch {set date [clock format [clock scan $date] -format "%Y-%m-%d"]} err]} { + ad_complain "Your input was not valid. It has to be in the form YYYYMMDD." + } + } + } } + # get stuff out of the config array array set config $cf if {[empty_string_p $view]} { @@ -45,7 +54,7 @@ } if {[llength $list_of_calendar_ids] > 1} { - set force_calendar_id [calendar_have_private_p -return_id 1 [ad_conn user_id]] + set force_calendar_id [calendar_have_private_p -return_id 1 -calendar_id_list $list_of_calendar_ids [ad_conn user_id]] } else { set force_calendar_id [lindex $list_of_calendar_ids 0] } Index: openacs-4/packages/calendar-portlet/www/calendar-portlet-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar-portlet/www/Attic/calendar-portlet-postgresql.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/calendar-portlet/www/calendar-portlet-postgresql.xql 18 Jul 2002 18:24:54 -0000 1.1 +++ openacs-4/packages/calendar-portlet/www/calendar-portlet-postgresql.xql 29 May 2003 18:05:21 -0000 1.2 @@ -24,7 +24,7 @@ and e.activity_id = a.activity_id and start_date between to_date(:current_date,:date_format) and - to_date(:current_date,:date_format) + (24 - 1/3600)/24 + to_date(:current_date,:date_format) + cast('23 hours 59 minutes 59 seconds' as interval) and e.event_id = ci.cal_item_id and c.calendar_id = ci.on_which_calendar and c.calendar_id in ($list_of_calendar_ids) Index: openacs-4/packages/calendar-portlet/www/calendar-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar-portlet/www/calendar-portlet.tcl,v diff -u -r1.19 -r1.20 --- openacs-4/packages/calendar-portlet/www/calendar-portlet.tcl 19 Dec 2002 16:31:05 -0000 1.19 +++ openacs-4/packages/calendar-portlet/www/calendar-portlet.tcl 29 May 2003 18:05:21 -0000 1.20 @@ -20,10 +20,24 @@ @author Arjun Sanyal (arjun@openforce.net) @cvs_id $Id$ +} { + {view ""} + {page_num ""} + {date ""} + {julian_date ""} } -properties { +} -validate { + valid_date -requires { date } { + if {![string equal $date ""]} { + if {[catch {set date [clock format [clock scan $date] -format "%Y-%m-%d"]} err]} { + ad_complain "Your input ($date) was not valid. It has to be in the form YYYYMMDD." + } + } + } } + # get stuff out of the config array array set config $cf set view $config(default_view) @@ -38,7 +52,7 @@ } if {[llength $list_of_calendar_ids] > 1} { - set force_calendar_id [calendar_have_private_p -return_id 1 [ad_conn user_id]] + set force_calendar_id [calendar_have_private_p -return_id 1 -calendar_id_list $list_of_calendar_ids [ad_conn user_id]] } else { set force_calendar_id [lindex $list_of_calendar_ids 0] } @@ -69,7 +83,32 @@ # big switch on the view var if { $view == "day" } { + # Check that the previous and next days are in the tcl boundaries + # so that the calendar widget doesn't bomb when it creates the next/prev links + if {[catch {set yest [clock format [clock scan "1 day ago" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set previous_link "" + } else { + if {[catch {clock scan $yest}]} { + set previous_link "" + } else { + set previous_link "\"back" + } + } + + if {[catch {set tomor [clock format [clock scan "1 day" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set next_link "" + } else { + if {[catch {clock scan $tomor}]} { + set next_link "" + } else { + set next_link "\"forward" + } + } + + set cal_stuff [calendar::one_day_display \ + -prev_nav_template $previous_link \ + -next_nav_template $next_link \ -item_template $item_template \ -hour_template $hour_template \ -date $current_date -start_hour 7 -end_hour 22 \ @@ -80,15 +119,64 @@ } if {$view == "week"} { + + # Check that the previous and next weeks are in the tcl boundaries + # so that the calendar widget doesn't bomb when it creates the next/prev links + if {[catch {set last_w [clock format [clock scan "1 week ago" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set previous_link "" + } else { + if {[catch {clock scan $last_w}]} { + set previous_link "" + } else { + set previous_link "\"back" + } + } + + if {[catch {set next_w [clock format [clock scan "1 week" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set next_link "" + } else { + if {[catch {clock scan $next_w}]} { + set next_link "" + } else { + set next_link "\"forward" + } + } + set cal_stuff [calendar::one_week_display \ -item_template $item_template \ -date $current_date \ -calendar_id_list $list_of_calendar_ids \ -url_stub_callback "calendar_portlet_display::get_url_stub" \ + -prev_week_template $previous_link \ + -next_week_template $next_link \ -show_calendar_name_p $show_calendar_name_p] } if {$view == "month"} { + + # Check that the previous and next months are in the tcl boundaries + # so that the calendar widget doesn't bomb when it creates the next/prev links + if {[catch {set prev_m [clock format [clock scan "1 month ago" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set previous_link "" + } else { + if {[catch {clock scan $prev_m}]} { + set previous_link "" + } else { + set previous_link "\"back" + } + } + + if {[catch {set next_m [clock format [clock scan "1 month" -base [clock scan $date]] -format "%Y-%m-%d"]}]} { + set next_link "" + } else { + if {[catch {clock scan $next_m}]} { + set next_link "" + } else { + set next_link "\"forward" + } + } + + set cal_stuff [calendar::one_month_display \ -item_template $item_template \ -day_template "\$day_number" \ @@ -105,6 +193,8 @@ -date $current_date \ -calendar_id_list $list_of_calendar_ids \ -url_stub_callback "calendar_portlet_display::get_url_stub" \ + -prev_month_template $previous_link \ + -next_month_template $next_link \ -show_calendar_name_p $show_calendar_name_p] } Index: openacs-4/packages/dotlrn/dotlrn.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/dotlrn.info,v diff -u -r1.107 -r1.108 --- openacs-4/packages/dotlrn/dotlrn.info 19 Dec 2002 16:30:04 -0000 1.107 +++ openacs-4/packages/dotlrn/dotlrn.info 29 May 2003 18:05:00 -0000 1.108 @@ -30,442 +30,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -484,7 +48,7 @@ - + Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/install.xml'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/dotlrn/sql/postgresql/classes-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/postgresql/classes-create.sql,v diff -u -r1.4 -r1.5 --- openacs-4/packages/dotlrn/sql/postgresql/classes-create.sql 9 Aug 2002 18:39:25 -0000 1.4 +++ openacs-4/packages/dotlrn/sql/postgresql/classes-create.sql 29 May 2003 18:05:00 -0000 1.5 @@ -63,7 +63,7 @@ constraint dotlrn_t_start_date_nn not null, end_date date - default (now() + '180 days'::timespan) + default (now() + '180 days'::interval) constraint dotlrn_t_end_date_nn not null ); @@ -161,7 +161,7 @@ select define_function_args ('dotlrn_department__delete', 'department_key'); -create function dotlrn_department__new(varchar,varchar,varchar,varchar,integer,timestamp,integer,varchar,integer) +create function dotlrn_department__new(varchar,varchar,varchar,varchar,integer,timestamptz,integer,varchar,integer) returns varchar as ' DECLARE p_department_key alias for $1; @@ -217,7 +217,7 @@ select define_function_args('dotlrn_class__delete','class_key'); -create function dotlrn_class__new(varchar,varchar,varchar,varchar,varchar,integer,timestamp,integer,varchar,integer) +create function dotlrn_class__new(varchar,varchar,varchar,varchar,varchar,integer,timestamptz,integer,varchar,integer) returns varchar as ' DECLARE p_class_key alias for $1; @@ -275,7 +275,7 @@ select define_function_args('dotlrn_class_instance__delete','class_instance_id'); -create function dotlrn_class_instance__new(integer,varchar,integer,varchar,varchar,varchar,integer,integer,integer,varchar,timestamp,integer,varchar,integer) +create function dotlrn_class_instance__new(integer,varchar,integer,varchar,varchar,varchar,integer,integer,integer,varchar,timestamptz,integer,varchar,integer) returns integer as ' DECLARE p_class_instance_id alias for $1; Index: openacs-4/packages/dotlrn/sql/postgresql/clubs-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/postgresql/clubs-create.sql,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn/sql/postgresql/clubs-create.sql 9 Aug 2002 18:39:25 -0000 1.3 +++ openacs-4/packages/dotlrn/sql/postgresql/clubs-create.sql 29 May 2003 18:05:00 -0000 1.4 @@ -51,7 +51,7 @@ select define_function_args ('dotlrn_club__delete','club_id'); -create function dotlrn_club__new(integer,varchar,varchar,varchar,integer,integer,integer,varchar,timestamp,integer,varchar,integer) +create function dotlrn_club__new(integer,varchar,varchar,varchar,integer,integer,integer,varchar,timestamptz,integer,varchar,integer) returns integer as ' DECLARE p_club_id alias for $1; Index: openacs-4/packages/dotlrn/sql/postgresql/communities-package-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/postgresql/communities-package-create.sql,v diff -u -r1.6 -r1.7 --- openacs-4/packages/dotlrn/sql/postgresql/communities-package-create.sql 9 Aug 2002 18:39:25 -0000 1.6 +++ openacs-4/packages/dotlrn/sql/postgresql/communities-package-create.sql 29 May 2003 18:05:00 -0000 1.7 @@ -55,7 +55,7 @@ END; ' language 'plpgsql'; -create function dotlrn_community_type__new (varchar,varchar,varchar,varchar,varchar,integer,timestamp,integer,varchar,integer) +create function dotlrn_community_type__new (varchar,varchar,varchar,varchar,varchar,integer,timestamptz,integer,varchar,integer) returns varchar as ' DECLARE p_community_type alias for $1; @@ -86,9 +86,9 @@ p_community_type, p_community_type, v_parent_object_type, - v_unique_name, - v_unique_name, - v_unique_name, + cast(v_unique_name as varchar), + cast(v_unique_name as varchar), + cast(v_unique_name as varchar), ''f'', null, ''acs_group.name'' @@ -158,7 +158,7 @@ select define_function_args('dotlrn_community__new','community_id,parent_community_id,community_type,community_key,pretty_name,description,archived_p;f,portal_id,non_member_portal_id,package_id,join_policy,creation_date,creation_user,creation_ip,context_id'); -create function dotlrn_community__new(integer,integer,varchar,varchar,varchar,varchar,varchar,integer,integer,integer,varchar,timestamp,integer,varchar,integer) +create function dotlrn_community__new(integer,integer,varchar,varchar,varchar,varchar,varchar,integer,integer,integer,varchar,timestamptz,integer,varchar,integer) returns integer as ' DECLARE p_community_id alias for $1; Index: openacs-4/packages/dotlrn/sql/postgresql/security-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/postgresql/security-create.sql,v diff -u -r1.4 -r1.5 --- openacs-4/packages/dotlrn/sql/postgresql/security-create.sql 4 Dec 2002 09:51:03 -0000 1.4 +++ openacs-4/packages/dotlrn/sql/postgresql/security-create.sql 29 May 2003 18:05:00 -0000 1.5 @@ -58,11 +58,6 @@ -- the ability to spam a community perform acs_privilege__create_privilege(''dotlrn_spam_community''); - -- temporarily drop this trigger to avoid a data-change violation - -- on acs_privilege_hierarchy_index while updating the child privileges. - - drop trigger acs_priv_hier_ins_del_tr on acs_privilege_hierarchy; - -- Consistent permissions perform acs_privilege__add_child(''dotlrn_edit_community'', ''dotlrn_view_community''); perform acs_privilege__add_child(''dotlrn_admin_community'', ''dotlrn_edit_community''); @@ -79,17 +74,10 @@ -- for now, we only want admins to be able to browse by default perform acs_privilege__add_child(''admin'', ''dotlrn_browse''); - -- re-enable the trigger before the last insert to force the - -- acs_privilege_hierarchy_index table to be updated. - create trigger acs_priv_hier_ins_del_tr after insert or delete - on acs_privilege_hierarchy for each row - execute procedure acs_priv_hier_ins_del_tr (); - -- no default permissions return 0; + end;' language 'plpgsql'; select inline0(); drop function inline0(); - - Index: openacs-4/packages/dotlrn/sql/postgresql/upgrade/upgrade-july-25-2002.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/postgresql/upgrade/upgrade-july-25-2002.sql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn/sql/postgresql/upgrade/upgrade-july-25-2002.sql 26 Jul 2002 01:57:35 -0000 1.1 +++ openacs-4/packages/dotlrn/sql/postgresql/upgrade/upgrade-july-25-2002.sql 29 May 2003 18:05:01 -0000 1.2 @@ -16,7 +16,7 @@ constraint dotlrn_t_start_date_nn not null, end_date date - default (now() + '180 days'::timespan) + default (now() + '180 days'::interval) constraint dotlrn_t_end_date_nn not null ); 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.45 -r1.46 --- openacs-4/packages/dotlrn/tcl/class-procs.tcl 12 Nov 2002 08:44:05 -0000 1.45 +++ openacs-4/packages/dotlrn/tcl/class-procs.tcl 29 May 2003 18:05:01 -0000 1.46 @@ -197,14 +197,11 @@ if {[empty_string_p $pretty_name]} { set pretty_name "[dotlrn_community::get_community_type_name $class_key]; $term $year" } - set community_key [dotlrn::generate_key -name $pretty_name] - db_transaction { set community_id [dotlrn_community::new \ -description $description \ -community_type $class_key \ -object_type [community_type] \ - -community_key $community_key \ -pretty_name $pretty_name \ -extra_vars $extra_vars \ ] 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.174 -r1.175 --- openacs-4/packages/dotlrn/tcl/community-procs.tcl 13 Dec 2002 16:06:33 -0000 1.174 +++ openacs-4/packages/dotlrn/tcl/community-procs.tcl 29 May 2003 18:05:01 -0000 1.175 @@ -122,7 +122,7 @@ -community_type $community_type_key \ ] - # Create type + # Delete the type db_exec_plsql delete_community_type {} # blow away the package_id and ALL associated site nodes @@ -145,7 +145,7 @@ } { get the type's package_id } { - db_string select_package_id {} + return [db_string select_package_id {}] } ad_proc -public get_type_node_id { @@ -253,11 +253,11 @@ set parent_node_id [get_community_node_id $parent_community_id] } - set package_id [site_node_apm_integration::new_site_node_and_package \ - -name $community_key \ - -parent_id $parent_node_id \ + set package_id [site_node::instantiate_and_mount \ + -parent_node_id $parent_node_id \ + -node_name $community_key \ -package_key [one_community_package_key] \ - -instance_name $pretty_name \ + -package_name $pretty_name \ -context_id $community_id \ ] @@ -1321,6 +1321,31 @@ } } + ad_proc -public navigation_context { + community_id + } { + Get the navigation context (list of url and name pairs) + of the given community. Used for generating context bar. + + @author Peter Marklund + } { + set context [list] + + if {[subcommunity_p -community_id $community_id]} { + set parent_name [get_parent_name -community_id $community_id] + set parent_url [get_community_url [get_parent_id -community_id $community_id]] + + lappend context [list $parent_url $parent_name] + } + + set community_name [get_community_name $community_id] + set community_url [get_community_url $community_id] + + lappend context [list $community_url $community_name] + + return $context + } + ad_proc -public get_community_description { {-community_id:required} } { Index: openacs-4/packages/dotlrn/tcl/community-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/community-procs.xql,v diff -u -r1.79 -r1.80 --- openacs-4/packages/dotlrn/tcl/community-procs.xql 4 Dec 2002 09:51:03 -0000 1.79 +++ openacs-4/packages/dotlrn/tcl/community-procs.xql 29 May 2003 18:05:01 -0000 1.80 @@ -579,4 +579,12 @@ + + + select package_id + from dotlrn_community_types + where community_type = :community_type + + + 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.69 -r1.70 --- openacs-4/packages/dotlrn/tcl/dotlrn-procs.tcl 4 Dec 2002 09:51:04 -0000 1.69 +++ openacs-4/packages/dotlrn/tcl/dotlrn-procs.tcl 29 May 2003 18:05:01 -0000 1.70 @@ -139,10 +139,6 @@ ns_log notice "dotlrn::mount_package: [array get parent_node]" - if {[empty_string_p $pretty_name]} { - set pretty_name $package_key - } - set package_id [site_node_apm_integration::new_site_node_and_package \ -name $url \ -parent_id $parent_node_id \ Index: openacs-4/packages/dotlrn/tcl/dotlrn-security-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/dotlrn-security-procs.tcl,v diff -u -r1.52 -r1.53 --- openacs-4/packages/dotlrn/tcl/dotlrn-security-procs.tcl 4 Dec 2002 09:51:04 -0000 1.52 +++ openacs-4/packages/dotlrn/tcl/dotlrn-security-procs.tcl 29 May 2003 18:05:01 -0000 1.53 @@ -35,30 +35,11 @@ chars to a dash. Yes, this is not unique, grows rapidly, will need collision detection and resolution, yada yada. } { - set next "" - regsub -all {\W+} $name "-" name - regsub -all -- {-+} $name "-" name - set name [string tolower [string trim $name {-}]] - - if {$increment_p} { - # increment the key by checking if the last 2 chars are -int - # if so, incr the int. if not add "-1" to the key - regexp -- {^(.*)-(\d+)$} $name match namepart intpart - - if {[info exists intpart]} { - set name "$namepart-[incr intpart]" - } else { - set name "$name-1" - } - } - - #bad things happen if the group name is the same as a dotlrn file name. - set conflicting_names [list members configure spam index not-allowed clone help] - if { [lsearch -exact $conflicting_names $name] != -1 } { - lappend name "-1" - } - - return $name + return [util_text_to_url \ + -replacement {} \ + -existing_urls { members configure spam index not-allowed clone help } \ + -no_resolve=[expr !$increment_p] \ + $name] } ad_proc -private do_abort {} { @@ -132,8 +113,7 @@ set portal_id [portal::create \ -template_id $template_id \ -name "[_ dotlrn.lt_Your_dotLRN_Workspace]" \ - $user_id - ] + $user_id] ns_set put $extra_vars portal_id $portal_id 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.20 -r1.21 --- openacs-4/packages/dotlrn/tcl/navigation-procs.tcl 11 Dec 2002 13:53:51 -0000 1.20 +++ openacs-4/packages/dotlrn/tcl/navigation-procs.tcl 29 May 2003 18:05:01 -0000 1.21 @@ -45,6 +45,76 @@ return [raw_navbar $args] } + ad_proc -public user_context_bar { + {-community_id:required} + } { +

+ Produce a helpful context bar for .LRN users. The context + bar is intended to aid navigation inside applications mounted + under dotlrn packages (classes, communities, and the .LRN home). + The proc will fetch the context var from the callers scope with upvar. +

+ +

+ Disclaimer: so far the proc has only been tested to work under + classes and communities. +

+ + @param community_id The id of the community/class we are at. + + @author Peter Marklund + } { + set community_context [dotlrn_community::navigation_context $community_id] + + upvar context context + + if { [exists_and_not_null context] } { + # The application context doesn't contain the application node itself so we need to prepend that + array set node_array [site_node::get -node_id [ad_conn node_id]] + set application_name $node_array(instance_name) + set application_url $node_array(url) + + if { [string match admin/* [ad_conn extra_url]] } { + set application_admin_context [list [list "${application_url}admin/" "Administration"]] + } else { + set application_admin_context [list] + } + + set application_context [list [list $application_url $application_name]] + + if { [llength $application_admin_context] > 0 } { + set application_context [concat $application_context $application_admin_context] + } + + if { ![empty_string_p $context] } { + set application_context [concat $application_context $context] + } else { + # Make last entry be just the label + set application_context [lreplace $application_context end end [lindex [lindex $application_context end] 1]] + } + } else { + set application_context [list] + } + + if { [llength $application_context] > 0 } { + set context_bar_context [concat $community_context $application_context] + } else { + # We need the last entry in the community context be just the label, so remove + # the URL + set community_context_last [lindex $community_context end] + set community_context_last_label [lindex $community_context_last 1] + + if { [llength $community_context] == 1} { + set context_bar_context [list $community_context_last_label] + } else { + set community_context_before_last [lrange $community_context 0 end-1] + set context_bar_context [concat $community_context_before_last [list $community_context_last_label]] + } + } + + return [dotlrn::raw_navbar $context_bar_context] + } + ad_proc -public navbar { { -community_id "" } { -community_type "" } @@ -100,7 +170,7 @@ } } - return "[join $list_of_links " > "]
" + return "[join $list_of_links " : "]
" } ad_proc -public portal_navbar { @@ -180,7 +250,8 @@ } # - # Common code for the the behavior of the control panel link + # Common code for the the behavior of the control panel link (class administration + # or my account) # set extra_td_selected_p 0 if {$show_control_panel} { Index: openacs-4/packages/dotlrn/tcl/spam-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/spam-procs.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/dotlrn/tcl/spam-procs.tcl 23 Oct 2002 12:38:38 -0000 1.4 +++ openacs-4/packages/dotlrn/tcl/spam-procs.tcl 29 May 2003 18:05:01 -0000 1.5 @@ -72,38 +72,13 @@ # loop through all the recepients and send them the spam set errors "" - db_foreach select_recepient_info " - select parties.email, - decode(acs_objects.object_type, - 'user', - (select first_names - from persons - where person_id = parties.party_id), - 'group', - (select group_name - from groups - where group_id = parties.party_id), - 'rel_segment', - (select segment_name - from rel_segments - where segment_id = parties.party_id), - '') as first_names, - decode(acs_objects.object_type, - 'user', - (select last_name - from persons - where person_id = parties.party_id), - '') as last_name - from parties, - acs_objects - where party_id in ([join $recepients ,]) - and parties.party_id = acs_objects.object_id - " { + db_foreach select_recepient_info {} { # replace some values in the subject and the message set values [list] - lappend values [list {} $email] - lappend values [list {} $first_names] - lappend values [list {} $last_name] + lappend values [list \{email\} $email] + lappend values [list \{first_names\} $first_names] + lappend values [list \{last_name\} $last_name] + lappend values [list \{from\} $from] set subject [interpolate -values $values -text $subject] set message [interpolate -values $values -text $message] Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/tcl/spam-procs.xql'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/dotlrn/www/community-edit-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-edit-2.tcl,v diff -u -r1.10 -r1.11 --- openacs-4/packages/dotlrn/www/community-edit-2.tcl 4 Dec 2002 09:51:04 -0000 1.10 +++ openacs-4/packages/dotlrn/www/community-edit-2.tcl 29 May 2003 18:05:01 -0000 1.11 @@ -50,9 +50,9 @@ if {[empty_string_p $tmp_filename]} { set tmp_size 0 set revision_id 0 - } else { +} else { set tmp_size [file size $tmp_filename] - } +} set title "$header_img-[db_nextval acs_object_id_seq]" @@ -118,8 +118,6 @@ -community_id $community_id \ -attribute_name header_logo_item_id ] - - ns_log notice "aks2: old revision_id $revision_id" } # Index: openacs-4/packages/dotlrn/www/community-edit.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-edit.adp,v diff -u -r1.10 -r1.11 --- openacs-4/packages/dotlrn/www/community-edit.adp 4 Dec 2002 09:51:04 -0000 1.10 +++ openacs-4/packages/dotlrn/www/community-edit.adp 29 May 2003 18:05:01 -0000 1.11 @@ -66,7 +66,7 @@    - + Index: openacs-4/packages/dotlrn/www/community-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-edit.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn/www/community-edit.tcl 4 Dec 2002 09:51:04 -0000 1.7 +++ openacs-4/packages/dotlrn/www/community-edit.tcl 29 May 2003 18:05:01 -0000 1.8 @@ -134,7 +134,7 @@ -attribute_name header_logo_item_id ] -# Default logos are served from know locations in the file system +# Default logos are served from known locations in the file system # based on community type. # Customized logos are stored in the public file-storage folder @@ -171,3 +171,10 @@ set context_bar [list [list one-community-admin [_ dotlrn.Administer]] [_ dotlrn.Edit_Properties]] ad_return_template + + + + + + + Index: openacs-4/packages/dotlrn/www/community-member.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-member.adp,v diff -u -r1.14 -r1.15 --- openacs-4/packages/dotlrn/www/community-member.adp 11 Dec 2002 13:53:51 -0000 1.14 +++ openacs-4/packages/dotlrn/www/community-member.adp 29 May 2003 18:05:01 -0000 1.15 @@ -22,19 +22,6 @@ @first_names@ @last_name@ @context_bar@ - - - -
- -
- - -
  • #dotlrn.Portrait# - - - - #dotlrn.user_has_been_a_member_since# @@ -71,6 +58,20 @@ + + + + +
    + +
    + + + + + +
    +

    #dotlrn.Shared_Files#

    Index: openacs-4/packages/dotlrn/www/community-member.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-member.tcl,v diff -u -r1.13 -r1.14 --- openacs-4/packages/dotlrn/www/community-member.tcl 4 Dec 2002 09:51:04 -0000 1.13 +++ openacs-4/packages/dotlrn/www/community-member.tcl 29 May 2003 18:05:01 -0000 1.14 @@ -126,11 +126,12 @@ db_multirow user_contributions user_contributions {} set folder_id [dotlrn_fs::get_user_shared_folder -user_id $user_id] + set scope_fs_url "/packages/file-storage/www/folder-chunk" set n_past_days "" -set url [site_node_object_map::get_url -object_id $folder_id] +set url "[site_node_object_map::get_url -object_id $folder_id]index?folder_id=$folder_id&n_past_days=99999" -set context_bar [ad_context_bar_ws_or_index "[_ dotlrn.Community_member]"] +set context_bar [ad_context_bar "[_ dotlrn.Community_member]"] set system_name [ad_system_name] set pretty_creation_date [lc_time_fmt $creation_date "%q"] set login_export_vars "return_url=[ns_urlencode [acs_community_member_url -user_id $user_id]]" Index: openacs-4/packages/dotlrn/www/configure.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure.adp,v diff -u -r1.16 -r1.17 --- openacs-4/packages/dotlrn/www/configure.adp 4 Dec 2002 09:51:04 -0000 1.16 +++ openacs-4/packages/dotlrn/www/configure.adp 29 May 2003 18:05:01 -0000 1.17 @@ -29,3 +29,10 @@

    @rendered_page@ + + + + + + + Index: openacs-4/packages/dotlrn/www/control-panel.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/control-panel.adp,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn/www/control-panel.adp 4 Dec 2002 09:51:04 -0000 1.7 +++ openacs-4/packages/dotlrn/www/control-panel.adp 29 May 2003 18:05:01 -0000 1.8 @@ -29,11 +29,11 @@ - + - + - + - + - +
    #dotlrn.lt_Help_and_Personal_Con##dotlrn.lt_Help_and_Personal_Con#
    @@ -44,7 +44,6 @@

    #dotlrn.Personal_Options#

    - +
    - + - + - + - + - +
    #dotlrn.lt_JoinDrop_Classes_or_C##dotlrn.lt_JoinDrop_Classes_or_C#
    - +
    Index: openacs-4/packages/dotlrn/www/control-panel.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/control-panel.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/dotlrn/www/control-panel.tcl 4 Dec 2002 09:51:04 -0000 1.5 +++ openacs-4/packages/dotlrn/www/control-panel.tcl 29 May 2003 18:05:01 -0000 1.6 @@ -16,7 +16,7 @@ ad_page_contract { - Control panel page for user's portal + My account page for a user. @author Ben Adida (ben@openforce.net) @author yon (yon@openforce.net) Index: openacs-4/packages/dotlrn/www/deregister-link.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/deregister-link.adp,v diff -u -r1.10 -r1.11 --- openacs-4/packages/dotlrn/www/deregister-link.adp 13 Dec 2002 16:06:33 -0000 1.10 +++ openacs-4/packages/dotlrn/www/deregister-link.adp 29 May 2003 18:05:01 -0000 1.11 @@ -21,5 +21,3 @@
    #dotlrn.drop_membership_link#@label@
    - - 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.35 -r1.36 --- openacs-4/packages/dotlrn/www/dotlrn-main-portlet.adp 13 Dec 2002 16:06:33 -0000 1.35 +++ openacs-4/packages/dotlrn/www/dotlrn-main-portlet.adp 29 May 2003 18:05:01 -0000 1.36 @@ -69,7 +69,7 @@ @communities.pretty_name@ -   +   #dotlrn.drop_membership_link# @@ -94,4 +94,3 @@ - Index: openacs-4/packages/dotlrn/www/dotlrn-master.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/dotlrn-master.adp,v diff -u -r1.16 -r1.17 --- openacs-4/packages/dotlrn/www/dotlrn-master.adp 4 Dec 2002 09:51:04 -0000 1.16 +++ openacs-4/packages/dotlrn/www/dotlrn-master.adp 29 May 2003 18:05:01 -0000 1.17 @@ -35,60 +35,77 @@ - + @attribute.key@="@attribute.value@"> - - - + + +
    + + - + - + + + - + + + - + - - -
    @text@
    @text@ - #dotlrn.user_portal_page_home_title# - #dotlrn.help# - #dotlrn.logout# - + @user_name@ +
    + #dotlrn.user_portal_page_home_title# + + #dotlrn.help# + + #dotlrn.logout# +
    @navbar@
    -

    -

    + + @navbar@ + +

    +

    + + + +

    .LRN

    +
    + - - + + - + + + + +
    @navbar@
    +
    + + +
    +
    +

    +

    + +

    - - - -
    @navbar@
    -

    -

    - - - - Index: openacs-4/packages/dotlrn/www/dotlrn-master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/dotlrn-master.tcl,v diff -u -r1.15 -r1.16 --- openacs-4/packages/dotlrn/www/dotlrn-master.tcl 13 Dec 2002 16:06:33 -0000 1.15 +++ openacs-4/packages/dotlrn/www/dotlrn-master.tcl 29 May 2003 18:05:01 -0000 1.16 @@ -42,13 +42,12 @@ # # $Id$ - set user_id [ad_get_user_id] set community_id [dotlrn_community::get_community_id] set dotlrn_url [dotlrn::get_url] -#Scope Related graphics/css parameters +#Scope Related graphics/css parameters # Set everything for user level scope as default then modify it later as we refine the scope. set scope_name "user" set scope_main_color "#003366" @@ -62,13 +61,13 @@ set header_font_size "medium" set header_font_color "black" set header_logo_item_id "" -set header_img_url "/graphics/logo" +set header_img_url "$dotlrn_url/graphics/logo" +set header_img_file "[acs_root_dir]/packages/dotlrn/www/graphics/logo" set header_img_alt_text "Header Logo" set extra_spaces "" set td_align "align=\"center\" valign=\"top\"" - if {[dotlrn::user_p -user_id $user_id]} { set portal_id [dotlrn::get_portal_id -user_id $user_id] } @@ -101,17 +100,23 @@ set link $return_url } - if {![info exists link_control_panel]} { set link_control_panel 1 } -if {![info exists control_panel_text]} { - set control_panel_text "Control Panel" +if { ![string equal [ad_conn package_key] [dotlrn::package_key]] } { + # Peter M: We are in a package (an application) that may or may not be under a dotlrn instance + # (i.e. in a news instance of a class) + # and we want all links in the navbar to be active so the user can return easily to the class homepage + # or to the My Space page + set link_all 1 } if {$have_comm_id_p} { + # in a community or just under one in a mounted package like /calendar # get this comm's info + set control_panel_text "Administer" + set portal_id [dotlrn_community::get_portal_id -community_id $community_id] set text [dotlrn_community::get_community_header_name $community_id] set link [dotlrn_community::get_community_url $community_id] @@ -130,6 +135,8 @@ set portal_id "" } } elseif {[parameter::get -parameter community_type_level_p] == 1} { + set control_panel_text "Administer" + set extra_td_html "" set link_all 1 set link [dotlrn::get_url] @@ -145,6 +152,7 @@ } } else { # we could be anywhere (maybe under /dotlrn, maybe not) + set control_panel_text "My Account" set link "[dotlrn::get_url]/" set community_id "" set text "" @@ -177,10 +185,10 @@ # Set up some basic stuff set user_id [ad_get_user_id] -set full_name "[dotlrn::get_user_name $user_id]" +set user_name "[dotlrn::get_user_name $user_id]" if {![exists_and_not_null title]} { - set title "SloanSpace" + set title ".LRN" } if {[empty_string_p [dotlrn_community::get_parent_community_id -package_id [ad_conn package_id]]]} { @@ -225,9 +233,18 @@ } } - set header_img_url "$header_img_url-$scope_name.gif" + # DRB: default logo for dotlrn is a JPEG provided by Collaboraid. This can + # be replaced by custom gifs if prefered (as is done by SloanSpace) - # font hack + if { [file exists "$header_img_file-$scope_name.jpg"] } { + set header_img_url "$header_img_url-$scope_name.jpg" + } elseif { [file exists "$header_img_file-$scope_name.gif"] } { + set header_img_url "$header_img_url-$scope_name.gif" + } + + # set header_img_url "$header_img_url-$scope_name.gif" + + # font hack set community_header_font [dotlrn_community::get_attribute \ -community_id $community_id \ -attribute_name header_font @@ -270,17 +287,29 @@ set header_img_alt_text $header_logo_alt_text } - # The header text is the name of the community - set text [dotlrn_community::get_community_header_name $community_id] + set text [dotlrn::user_context_bar -community_id $community_id] + if { [string equal [ad_conn package_key] [dotlrn::package_key]] } { + set text "$text" + } + } elseif {[parameter::get -parameter community_type_level_p] == 1} { - # in a community type + # in a community type (subject) set text \ [dotlrn_community::get_community_type_name [dotlrn_community::get_community_type]] } else { # under /dotlrn - set header_img_url "$header_img_url-$scope_name.gif" - set text $full_name + + # DRB: default logo for dotlrn is a JPEG provided by Collaboraid. This can + # be replaced by custom gifs if prefered (as is done by SloanSpace) + + if { [file exists "$header_img_file-$scope_name.jpg"] } { + set header_img_url "$header_img_url-$scope_name.jpg" + } elseif { [file exists "$header_img_file-$scope_name.gif"] } { + set header_img_url "$header_img_url-$scope_name.gif" + } + + set text "" } if { ![info exists header_stuff] } { @@ -316,7 +345,6 @@ } - H2.portal-page-name { FONT-WEIGHT: bold; FONT-SIZE: medium; COLOR: black; FONT-FAMILY: Arial, Helvetica, sans-serif; margin-top: 5px; margin-left: 5px; } @@ -540,14 +568,22 @@ ALIGN: center; } -.new_flag { - color: #CD0000; -} " +# Focus +multirow create attribute key value + +if { ![template::util::is_nil focus] } { + # Handle elements wohse name contains a dot + regexp {^([^.]*)\.(.*)$} $focus match form_name element_name + + template::multirow append \ + attribute onload "javascript:document.forms\['${form_name}'\].elements\['${element_name}'\].focus()" +} + # Developer-support support set ds_enabled_p [parameter::get_from_package_key \ -package_key acs-developer-support \ @@ -561,6 +597,4 @@ set ds_link {} } -set color_1pixel "/shared/1pixel.tcl?[export_vars { { r 204 } { g 0 } { b 0 }}]" - set change_locale_url "/acs-lang/?[export_vars { { package_id "[ad_conn package_id]" } }]" Index: openacs-4/packages/dotlrn/www/help.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/help.adp,v diff -u -r1.8 -r1.9 --- openacs-4/packages/dotlrn/www/help.adp 4 Dec 2002 09:51:04 -0000 1.8 +++ openacs-4/packages/dotlrn/www/help.adp 29 May 2003 18:05:01 -0000 1.9 @@ -30,20 +30,20 @@ your password, correct or change your full name, publish a URL for a your website, and change your login name/email address. If you do not keep this login name the same as your current email address or a forwarding address, you will not - receive group emails and forum alerts from SloanSpace.

    + receive group emails and forum alerts from .LRN.

    To Change Password:
    -

  • Login and go to your Control Panel page
    +
  • Login and go to your My Account page
  • If you do not have a personal portal, click on the Help icon in the group - banner to get to your Control Panel.
    + banner to get to your My Account.
  • Click on "Change My Password"
  • Enter your new password twice and click "Update."

    To change personal information:
    -

  • Login and go to your Control Panel page
    +
  • Login and go to your My Account page
  • If you do not have a personal portal, click on the Help icon in the group - banner to get to your Control Panel.
    + banner to get to your My Account.
  • Click on "Edit My Personal Information"
  • Edit your full name, your email address (which also changes your login name to the system) and/or your personal URL.
    @@ -54,7 +54,7 @@ and communities). Limited Access users (non-affiliated) cannot join or drop groups.

    To join/drop classes and communities:
    -

  • Go to your personal Home page, MySpace.
    +
  • Go to your personal Home page, My Space.
  • Click on "Join/Drop a Class or Community Group" in the Groups portlet.
  • On the top of the page, you will see the list of your current class @@ -71,15 +71,15 @@

    To join/drop subgroups:

  • Since subgroups are subsets of groups, their memberships are handled within the groups.
    -
  • Go to your personal Home page, MySpace.
    +
  • Go to your personal Home page, My Space.
  • Go to the class or community through the link in the Groups portlet.
  • Locate the Subgroups portlet on the class or community portal pages.
  • Click the "Join/Drop a Subgroup" link.
  • Click the "join" or "drop" link next to the desired subgroup.
  • Your membership status will change when the page reloads.
    -
  • Then, return to the Subgroup Home page or MySpace to continue. +
  • Then, return to the Subgroup Home page or My Space to continue.

    Requesting a New Class or Community
    The Site Wide Administrator handles class and community requests.

    To request a new class or to copy and reuse a class from a previous semester:
    @@ -96,12 +96,12 @@ of any persons who will need to be administrators of this community. You will be notified by email when the community shell has been created.

    Bulk Mail
    - Class and community administrators can send group emails through the group Control - Panel page. If enabled, class and community members can send group emails through - the "Email Members" links on the user Control Panel page.

    + Class and community administrators can send group emails through the group administration + page. If enabled, class and community members can send group emails through + the "Email Members" links on the user's My Account page.

    To send a group email:
    -

  • For admins, go to group Control Panel and click "New Bulk Mail." +
  • For admins, go to the administration page and click "New Bulk Mail."
  • For students in classes, go to the Staff List portlet and click on Member @@ -113,20 +113,13 @@
  • Review the message and click "Confirm."
  • The email is sent to all members with the role chosen. Group admins can view - the bulk mail history from the group Control Panel page. + the bulk mail history from the group administration page.

    Modifying Your Forum Email Alerts
    You can subscribe and unsubscribe to email alerts for any forum open to you - through the "Edit My Forum Email Alerts" link on the user Control Panel page. - Limited Access users can access their Control Panel through the Help icon + through the "Edit My Forum Email Alerts" link on the My Account page. + Limited Access users can access their My Account page through the Help icon in the group banner.

    - -

    Additional Help
    - If your specific question is not answered here, consult the User or Admin - Handbooks located in the file storage area of the STS-Sloanwide community. - If you still cannot find the answer to your question or problem, email the - Site Wide Administrator at sloanspace-help@sloan.mit.edu.


    - 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.20 -r1.21 --- openacs-4/packages/dotlrn/www/manage-memberships.adp 11 Dec 2002 13:53:51 -0000 1.20 +++ openacs-4/packages/dotlrn/www/manage-memberships.adp 29 May 2003 18:05:01 -0000 1.21 @@ -218,3 +218,9 @@ + + + + + + Index: openacs-4/packages/dotlrn/www/member-add-2.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/member-add-2.adp,v diff -u -r1.15 -r1.16 --- openacs-4/packages/dotlrn/www/member-add-2.adp 4 Dec 2002 09:51:04 -0000 1.15 +++ openacs-4/packages/dotlrn/www/member-add-2.adp 29 May 2003 18:05:01 -0000 1.16 @@ -41,7 +41,3 @@ - - - - Index: openacs-4/packages/dotlrn/www/member-add.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/member-add.adp,v diff -u -r1.13 -r1.14 --- openacs-4/packages/dotlrn/www/member-add.adp 4 Dec 2002 09:51:04 -0000 1.13 +++ openacs-4/packages/dotlrn/www/member-add.adp 29 May 2003 18:05:01 -0000 1.14 @@ -32,6 +32,10 @@ + + Index: openacs-4/packages/dotlrn/www/members-chunk-table.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/members-chunk-table.tcl,v diff -u -r1.19 -r1.20 --- openacs-4/packages/dotlrn/www/members-chunk-table.tcl 4 Dec 2002 09:51:04 -0000 1.19 +++ openacs-4/packages/dotlrn/www/members-chunk-table.tcl 29 May 2003 18:05:01 -0000 1.20 @@ -30,6 +30,8 @@ n_parent_users:onevalue } +set dotlrn_url [dotlrn::get_url] + # use my_user_id here so we don't confuse with user_id from the query set my_user_id [ad_conn user_id] @@ -61,15 +63,16 @@ if {[string compare $order_direction "asc"]==0} { - set order_html "" + set order_html "" set opposite_order_direction "desc" } else { - set order_html "" + set order_html "" set opposite_order_direction "asc" } # Variables that will be used if the column # is not selected. + set first_names_order_html "" set last_name_order_html "" set email_order_html "" @@ -78,7 +81,6 @@ set last_name_order_direction $order_direction set email_order_direction $order_direction - # Special case for the selected column. switch $order { "first_names" { Index: openacs-4/packages/dotlrn/www/members.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/members.adp,v diff -u -r1.18 -r1.19 --- openacs-4/packages/dotlrn/www/members.adp 4 Dec 2002 09:51:04 -0000 1.18 +++ openacs-4/packages/dotlrn/www/members.adp 29 May 2003 18:05:01 -0000 1.19 @@ -29,5 +29,3 @@
  • #dotlrn.Email_Members# - - 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.15 -r1.16 --- openacs-4/packages/dotlrn/www/my-communities.adp 13 Dec 2002 16:06:33 -0000 1.15 +++ openacs-4/packages/dotlrn/www/my-communities.adp 29 May 2003 18:05:01 -0000 1.16 @@ -44,6 +44,3 @@ - - - Index: openacs-4/packages/dotlrn/www/register-link.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/register-link.adp,v diff -u -r1.13 -r1.14 --- openacs-4/packages/dotlrn/www/register-link.adp 13 Dec 2002 16:06:33 -0000 1.13 +++ openacs-4/packages/dotlrn/www/register-link.adp 29 May 2003 18:05:01 -0000 1.14 @@ -20,5 +20,3 @@
    #dotlrn.join_link##dotlrn.request_membership_link#@label@
    - - Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/register-oracle.xql'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/register-postgresql.xql'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/dotlrn/www/register.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/register.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn/www/register.tcl 4 Dec 2002 09:51:04 -0000 1.9 +++ openacs-4/packages/dotlrn/www/register.tcl 29 May 2003 18:05:01 -0000 1.10 @@ -50,75 +50,51 @@ # This should prevent most double clicks, leaving # the catch below to trap the rest. -if {[dotlrn_community::member_p $community_id $user_id]} { +if { [dotlrn_community::member_p $community_id $user_id] || \ + ([string equal $join_policy "needs approval"] && [dotlrn_community::member_pending_p -community_id $community_id -user_id $user_id]) } { ad_returnredirect $referer ad_script_abort } if {[catch { switch -exact $join_policy { - "open" { - dotlrn_community::add_user -member_state approved $community_id $user_id - } - "needs approval" { - dotlrn_community::add_user -member_state "needs approval" $community_id $user_id - - # Following the same proccess as spam.tcl to email - # admins in bulk. - - set segment_id [db_string select_admin_rel_segment_id {}] - set community_name [dotlrn_community::get_community_name $community_id] - set community_url "[ad_parameter -package_id [ad_acs_kernel_id] SystemURL][dotlrn_community::get_community_url $community_id]" - - set query "select parties.email, - decode(acs_objects.object_type, - 'user', - (select first_names - from persons - where person_id = parties.party_id), - 'group', - (select group_name - from groups - where group_id = parties.party_id), - 'rel_segment', - (select segment_name - from rel_segments - where segment_id = parties.party_id), - '') as first_names, - decode(acs_objects.object_type, - 'user', - (select last_name - from persons - where person_id = parties.party_id), - '') as last_name - from party_approved_member_map, - parties, - acs_objects - where party_approved_member_map.party_id = $segment_id - and party_approved_member_map.member_id <> $segment_id - and party_approved_member_map.member_id = parties.party_id - and parties.party_id = acs_objects.object_id" + "open" { + dotlrn_community::add_user -member_state approved $community_id $user_id + } + "needs approval" { + dotlrn_community::add_user -member_state "needs approval" $community_id $user_id + + + # Following the same process as spam.tcl to email + # admins in bulk. + + set segment_id [db_string select_admin_rel_segment_id {}] + set community_name [dotlrn_community::get_community_name $community_id] + set community_url "[ad_parameter -package_id [ad_acs_kernel_id] SystemURL][dotlrn_community::get_community_url $community_id]" + + set query [db_map bulk_mail_query] - - set full_name "[dotlrn::get_user_name $user_id]" - set email "[cc_email_from_party $user_id]" - set subject "$full_name ($email) has requested to join $community_name." - - set message "$full_name ($email) has requested to join $community_name. - + set full_name "[dotlrn::get_user_name $user_id]" + set email "[cc_email_from_party $user_id]" + set subject "$full_name ($email) has requested to join $community_name." + + set message "$full_name ($email) has requested to join $community_name. + Visit this link to approve or reject this request: $community_url/members " - bulk_mail::new \ - -package_id [site_node_apm_integration::get_child_package_id -package_id [dotlrn_community::get_package_id $community_id] -package_key [bulk_mail::package_key]] \ - -from_addr [ad_system_owner] \ - -subject $subject \ - -message $message \ - -query $query + set package_id [site_node_apm_integration::get_child_package_id -package_id [dotlrn_community::get_package_id $community_id] -package_key [bulk_mail::package_key]] + bulk_mail::new \ + -package_id $package_id \ + -from_addr [ad_system_owner] \ + -subject $subject \ + -message $message \ + -query $query + } } } errmsg]} { @@ -127,12 +103,13 @@ # (in which case this was likely a double click) if {[dotlrn_community::member_p $community_id $user_id]} { - ad_returnredirect $referer - ad_script_abort + ad_returnredirect $referer + ad_script_abort } else { - ns_log Error "register.tcl failed: $errmsg" - - ad_return_error "Error adding user to community" "An error occured while trying to add a user to a community. This error has been logged." + global errorInfo + ns_log Error "register.tcl failed: $errmsg\n$errorInfo" + + ad_return_error "Error adding user to community" "An error occured while trying to add a user to a community. This error has been logged." } } Index: openacs-4/packages/dotlrn/www/spam-2.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/spam-2.adp,v diff -u -r1.10 -r1.11 --- openacs-4/packages/dotlrn/www/spam-2.adp 4 Dec 2002 09:51:04 -0000 1.10 +++ openacs-4/packages/dotlrn/www/spam-2.adp 29 May 2003 18:05:01 -0000 1.11 @@ -20,9 +20,6 @@ @spam_name@ @context_bar@ - - -

    #dotlrn.are_you_sure_you_want_to_send# @spam_name@ #dotlrn.Message#?

    @@ -56,7 +53,3 @@ @confirm_data@ - - - - Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/spam-oracle.xql'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/spam-postgresql.xql'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/dotlrn/www/spam.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/spam.adp,v diff -u -r1.18 -r1.19 --- openacs-4/packages/dotlrn/www/spam.adp 4 Dec 2002 09:51:04 -0000 1.18 +++ openacs-4/packages/dotlrn/www/spam.adp 29 May 2003 18:05:01 -0000 1.19 @@ -26,6 +26,3 @@ - - - Index: openacs-4/packages/dotlrn/www/spam.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/spam.tcl,v diff -u -r1.19 -r1.20 --- openacs-4/packages/dotlrn/www/spam.tcl 4 Dec 2002 09:51:04 -0000 1.19 +++ openacs-4/packages/dotlrn/www/spam.tcl 29 May 2003 18:05:01 -0000 1.20 @@ -52,8 +52,7 @@ element create spam_message from \ -label [_ dotlrn.From] \ -datatype text \ - -widget text \ - -html {size 60} \ + -widget hidden \ -value $sender_email element create spam_message rel_type \ @@ -86,8 +85,8 @@ -label [_ dotlrn.Send_Date] \ -datatype date \ -widget date \ - -format {MONTH DD YYYY HH12:MI AM} \ - -value [template::util::date::now] + -format {MONTH DD YYYY HH12 MI AM} \ + -value [template::util::date::now_min_interval] element create spam_message referer \ -label [_ dotlrn.Referer] \ @@ -105,49 +104,7 @@ set safe_community_name [db_quote $community_name] - set query " - select '$from' as from_addr, - '$sender_first_names' as sender_first_names, - '$sender_last_name' as sender_last_name, - parties.email, - decode(acs_objects.object_type, - 'user', - (select first_names - from persons - where person_id = parties.party_id), - 'group', - (select group_name - from groups - where group_id = parties.party_id), - 'rel_segment', - (select segment_name - from rel_segments - where segment_id = parties.party_id), - '') as first_names, - decode(acs_objects.object_type, - 'user', - (select last_name - from persons - where person_id = parties.party_id), - '') as last_name, - '$safe_community_name' as community_name, - '$community_url' as community_url - from party_approved_member_map, - parties, - acs_objects - where party_approved_member_map.party_id = $segment_id - and party_approved_member_map.member_id <> $segment_id - and party_approved_member_map.member_id = parties.party_id - and parties.party_id = acs_objects.object_id - and parties.party_id in (select acs_rels.object_id_two - from acs_rels, membership_rels - where acs_rels.object_id_one = - acs.magic_object_id('registered_users') - and acs_rels.rel_id = - membership_rels.rel_id - and membership_rels.member_state - = 'approved') - " + set query [db_map sender_info] ns_log notice "query: $query" Index: openacs-4/packages/dotlrn/www/user-add.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/user-add.adp,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn/www/user-add.adp 4 Dec 2002 09:51:04 -0000 1.9 +++ openacs-4/packages/dotlrn/www/user-add.adp 29 May 2003 18:05:01 -0000 1.10 @@ -47,4 +47,3 @@
    - Index: openacs-4/packages/dotlrn/www/admin/add-instructor-3.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/add-instructor-3.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn/www/admin/add-instructor-3.tcl 23 Oct 2002 12:38:40 -0000 1.9 +++ openacs-4/packages/dotlrn/www/admin/add-instructor-3.tcl 29 May 2003 18:05:01 -0000 1.10 @@ -31,7 +31,7 @@ # if the user isn't already a dotLRN user make him so if {!${is_dotlrn_user}} { dotlrn::user_add -user_id $user_id -type professor -can_browse - acs_privacy::set_user_read_private_data -user_id $user_id -object_id [dotlrn_community::get_package_id $community_id] -value t + acs_privacy::set_user_read_private_data -user_id $user_id -object_id [dotlrn::get_package_id] -value t } # Add the relation Index: openacs-4/packages/dotlrn/www/admin/class-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/class-edit.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn/www/admin/class-edit.tcl 23 Oct 2002 12:38:40 -0000 1.7 +++ openacs-4/packages/dotlrn/www/admin/class-edit.tcl 29 May 2003 18:05:01 -0000 1.8 @@ -48,7 +48,7 @@ -label [_ dotlrn.Name] \ -datatype text \ -widget text \ - -html {size 60} + -html {size 60 maxlength 100} element create edit_class description \ -label [_ dotlrn.Description] \ Index: openacs-4/packages/dotlrn/www/admin/class-instance-new.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/class-instance-new.tcl,v diff -u -r1.22 -r1.23 --- openacs-4/packages/dotlrn/www/admin/class-instance-new.tcl 11 Dec 2002 13:53:51 -0000 1.22 +++ openacs-4/packages/dotlrn/www/admin/class-instance-new.tcl 29 May 2003 18:05:01 -0000 1.23 @@ -108,7 +108,7 @@ set class_instances_pretty_name [parameter::get -localize -parameter class_instances_pretty_name] set context_bar [list \ - [list classes [_ dotlrn.Classes]] \ + [list classes [parameter::get -parameter classes_pretty_plural]] \ [list "class?class_key=$class_key" $class_name] \ [_ dotlrn.new_class_instance] ] Index: openacs-4/packages/dotlrn/www/admin/class-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/Attic/class-postgresql.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn/www/admin/class-postgresql.xql 22 Jul 2002 16:28:31 -0000 1.1 +++ openacs-4/packages/dotlrn/www/admin/class-postgresql.xql 29 May 2003 18:05:01 -0000 1.2 @@ -8,8 +8,8 @@ select dotlrn_terms.term_name || ' ' || dotlrn_terms.term_year, dotlrn_terms.term_id from dotlrn_terms - where dotlrn_terms.end_date > (now() - 360) - and dotlrn_terms.start_date < (now() + 360) + where dotlrn_terms.end_date > (cast(current_timestamp as date) - 360) + and dotlrn_terms.start_date < (cast(current_timestamp as date) + 360) order by dotlrn_terms.start_date, dotlrn_terms.end_date Index: openacs-4/packages/dotlrn/www/admin/dotlrn-admin-master.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/dotlrn-admin-master.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/dotlrn/www/admin/dotlrn-admin-master.adp 4 Dec 2002 09:51:04 -0000 1.5 +++ openacs-4/packages/dotlrn/www/admin/dotlrn-admin-master.adp 29 May 2003 18:05:01 -0000 1.6 @@ -30,3 +30,16 @@
    + + + + + + + + + + + + + Index: openacs-4/packages/dotlrn/www/admin/site-wide-admin-toggle.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/site-wide-admin-toggle.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn/www/admin/site-wide-admin-toggle.tcl 4 Dec 2002 09:51:04 -0000 1.7 +++ openacs-4/packages/dotlrn/www/admin/site-wide-admin-toggle.tcl 29 May 2003 18:05:01 -0000 1.8 @@ -34,3 +34,5 @@ util_memoize_flush_regexp $user_id ad_returnredirect $referer + + Index: openacs-4/packages/dotlrn/www/admin/term-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/term-edit.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/dotlrn/www/admin/term-edit.tcl 23 Oct 2002 12:38:40 -0000 1.5 +++ openacs-4/packages/dotlrn/www/admin/term-edit.tcl 29 May 2003 18:05:01 -0000 1.6 @@ -15,75 +15,48 @@ # ad_page_contract { + edit a term @author yon (yon@openforce.net) + @author Don Baccus (dhogaza@pacifier.com) + @creation-date 2002-03-14 @version $Id$ + } -query { term_id:integer,notnull - {referer "terms"} + term_pretty_name:notnull } -properties { context_bar:onevalue } -if {![db_0or1row select_term_info {}]} { - ad_return_complaint 1 "
  • [_ dotlrn.Invalid] term_id $term_id
  • " - ad_script_abort -} - -set referer "term?[ns_conn query]" +set referer "term?[export_vars {term_id}]" set context_bar [list [list terms [_ dotlrn.Terms]] [list $referer "$term_name $term_year"] [_ dotlrn.Edit]] -form create edit_term +ad_form -name edit_term -export term_pretty_name -select_query_name select_term_info -form { -element create edit_term term_id \ - -label "[_ dotlrn.Term_ID]" \ - -datatype integer \ - -widget hidden \ - -value $term_id + term_id:key -element create edit_term term_name \ - -label "[_ dotlrn.Term_eg_Spring_Fall]" \ - -datatype text \ - -widget text \ - -html {size 30} + {term_name:text {label "Term (e.g. Spring, Fall)"} + {html {size 30}}} -element create edit_term term_year \ - -label "[_ dotlrn.lt_Year_eg_2003_20032004]" \ - -datatype text \ - -widget text \ - -html {size 9 maxlength 9} + {term_year:text {label "Year (e.g. 2003, 2003/2004)"} + {html {size 9 maxlength 9}}} -element create edit_term start_date \ - -label "[_ dotlrn.Start_Date]" \ - -datatype date \ - -widget date \ - -format {MONTH DD YYYY} + {start_date:date {label "Start Date"} + {format {MONTH DD YYYY}}} -element create edit_term end_date \ - -label "[_ dotlrn.End_Date]" \ - -datatype date \ - -widget date \ - -format {MONTH DD YYYY} + {end_date:date {label "End Date"} + {format {MONTH DD YYYY}}} -element create edit_term referer \ - -label "[_ dotlrn.Referer]" \ - -datatype text \ - -widget hidden \ - -value $referer +} -validate { + {start_date + { [template::util::date::compare $start_date $end_date] <= 0 } + "The term must start before it ends" + } +} -edit_data { -if {[form is_request edit_term]} { - element set_properties edit_term term_name -value $term_name - element set_properties edit_term term_year -value $term_year - element set_properties edit_term start_date -value $start_date - element set_properties edit_term end_date -value $end_date -} - -if {[form is_valid edit_term]} { - form get_values edit_term \ - term_id term_name term_year start_date end_date referer - dotlrn_term::edit \ -term_id $term_id \ -term_name $term_name \ Index: openacs-4/packages/dotlrn/www/admin/term-new.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/term-new.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn/www/admin/term-new.tcl 23 Oct 2002 12:38:40 -0000 1.7 +++ openacs-4/packages/dotlrn/www/admin/term-new.tcl 29 May 2003 18:05:01 -0000 1.8 @@ -26,41 +26,32 @@ context_bar:onevalue } -form create add_term +ad_form -name add_term -export referer -form { -element create add_term term_name \ - -label "[_ dotlrn.Term_eg_Spring_Fall]" \ - -datatype text \ - -widget text \ - -html {size 30} + {term_name:text {label "Term (e.g. Spring, Fall)"} {maxlength 20} + {html {size 30}}} -element create add_term start_date \ - -label "[_ dotlrn.Start_Date]" \ - -datatype date \ - -widget date \ - -format {MONTH DD YYYY} + {start_date:date + {label "Start Date"} + {format {MONTH DD YYYY}}} -element create add_term end_date \ - -label "[_ dotlrn.End_Date]" \ - -datatype date \ - -widget date \ - -format {MONTH DD YYYY} + {end_date:date + {label "End Date"} + {format {MONTH DD YYYY}}} +} -validate { + {start_date + { [template::util::date::compare $start_date $end_date] <= 0 } + "The term must start before it ends" + } +} -on_submit { -element create add_term referer \ - -label "[_ dotlrn.Referer]" \ - -datatype text \ - -widget hidden \ - -value $referer - -if {[form is_valid add_term]} { - form get_values add_term \ - term_name start_date end_date referer - set term_year [dotlrn_term::start_end_dates_to_term_year \ -start_date $start_date \ -end_date $end_date ] +# error [string bytelength $term_name] + dotlrn_term::new \ -term_name $term_name \ -term_year $term_year \ Index: openacs-4/packages/dotlrn/www/admin/user-new-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/user-new-2.tcl,v diff -u -r1.28 -r1.29 --- openacs-4/packages/dotlrn/www/admin/user-new-2.tcl 4 Dec 2002 09:51:04 -0000 1.28 +++ openacs-4/packages/dotlrn/www/admin/user-new-2.tcl 29 May 2003 18:05:01 -0000 1.29 @@ -127,3 +127,6 @@ set context_bar [list [list users [_ dotlrn.Users]] [_ dotlrn.New]] ad_return_template + + + 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.20 -r1.21 --- openacs-4/packages/dotlrn/www/admin/user.adp 11 Dec 2002 13:53:51 -0000 1.20 +++ openacs-4/packages/dotlrn/www/admin/user.adp 29 May 2003 18:05:01 -0000 1.21 @@ -182,8 +182,18 @@
  • #dotlrn.lt_Manage_this_users_por#
  • +
  • + +This user is a site-wide admin. (revoke) + + + Make this user a site wide admin. + + +
    +
  • #dotlrn.lt_This_user_is_a_site-w# (#dotlrn.revoke#) Index: openacs-4/packages/dotlrn/www/admin/user.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/user.tcl,v diff -u -r1.15 -r1.16 --- openacs-4/packages/dotlrn/www/admin/user.tcl 11 Dec 2002 13:53:51 -0000 1.15 +++ openacs-4/packages/dotlrn/www/admin/user.tcl 29 May 2003 18:05:01 -0000 1.16 @@ -93,4 +93,6 @@ set clubs_pretty_name [parameter::get -localize -parameter clubs_pretty_name] set subcommunities_pretty_name [parameter::get -localize -parameter subcommunities_pretty_name] +set dual_approve_return_url [ns_urlencode [dotlrn::get_admin_url]/user-new-2?user_id=$user_id&referer=$return_url] + ad_return_template Index: openacs-4/packages/dotlrn/www/admin/users-add-to-community.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/users-add-to-community.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn/www/admin/users-add-to-community.tcl 23 Oct 2002 12:38:40 -0000 1.9 +++ openacs-4/packages/dotlrn/www/admin/users-add-to-community.tcl 29 May 2003 18:05:01 -0000 1.10 @@ -76,6 +76,29 @@ dotlrn_community::add_user $community_id $user } } + + # Now notify the users that they've been added to the community. + + set sender_email [cc_email_from_party [ad_conn user_id]] + foreach {community} $communities { + if { $community_id == [lindex $community 1] } { + set community_name [lindex $community 0] + break + } + } + + set subject "You have been added to the \"$community_name\" community at [ad_parameter -package_id [ad_acs_kernel_id] SystemURL]" + set message "To visit the community's home page, point your browser at [ad_parameter -package_id [ad_acs_kernel_id] SystemURL], +log in, and click on the \"$community_name\" link in the \"Groups\" portlet. +" + + spam::send \ + -recepients $users \ + -from $sender_email \ + -real_from $sender_email \ + -subject $subject \ + -message $message \ + -message_values [list] } ad_returnredirect $referer Index: openacs-4/packages/dotlrn/www/admin/users-bulk-upload-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/users-bulk-upload-2.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn/www/admin/users-bulk-upload-2.tcl 12 Nov 2002 08:44:06 -0000 1.9 +++ openacs-4/packages/dotlrn/www/admin/users-bulk-upload-2.tcl 29 May 2003 18:05:01 -0000 1.10 @@ -37,26 +37,35 @@ doc_body_append "[_ dotlrn.Bulk_Uploading]

    " -set list_of_user_ids [list] +set list_of_user [list] +set list_of_addresses_and_passwords [list] # Do the stuff # We can't do this too generically, so we'll just do the CSV stuff right here db_transaction { - set fail_p 0 oacs_util::csv_foreach -file $file_location -array_name row { + + # First make sure the required data is there + + if { ![info exists row(email)] || ![info exists row(first_names)] || ![info exists row(last_name)] } { + doc_body_append "
    Datafile must include at least the email, first_names and last_name fields
    " + db_abort_transaction + return + } + # We need to insert the ACS user set password [ad_generate_random_string] # Check if this user already exists set user_id [cc_lookup_email_user $row(email)] if {![empty_string_p $user_id]} { doc_body_append [_ dotlrn.user_email_already_exists [list user_email $row(email)]] - lappend list_of_user_ids $user_id + lappend list_of_users $user_id } else { set user_id [ad_user_new $row(email) $row(first_names) $row(last_name) $password "" "" "" "t" "approved"] - lappend list_of_user_ids $user_id + lappend list_of_users $user_id if {![info exists row(type)]} { set row(type) student @@ -69,7 +78,13 @@ if {![info exists row(guest)]} { set row(guest) f } + + if {![info exists row(id)]} { + set row(id) $row(email) + } + doc_body_append "Creating user $row(email)...." + # Now we make them a dotLRN user switch -exact $row(access_level) { limited { @@ -105,13 +120,40 @@ } else { doc_body_append "[_ dotlrn.email_sent]" } + + lappend list_of_addresses_and_passwords $row(email) $password } doc_body_append "
    " } +} on_error { + doc_body_append "

    The database choked while trying to create the last user in the list above!
    The transaction has been aborted, no users have been entered, and no e-mail notifications have been sent.

    " + ad_script_abort } +set fail_p 0 + +doc_body_append "

    Sending email notifications to users...

    " + +foreach {email password} $list_of_addresses_and_passwords { + if { ![string equal $password ""] } { + set message " +You have been added as a user to [ad_system_name] at [ad_parameter -package_id [ad_acs_kernel_id] SystemURL]. + +Login: $email +Password: $password +" + # Send note to new user + if [catch {ns_sendmail "$email" "$admin_email" "You have been added as a user to [ad_system_name] at [ad_parameter -package_id [ad_acs_kernel_id] SystemURL]" "$message"} errmsg] { + doc_body_append "emailing \"$email\" failed!
    " + set fail_p 1 + } else { + doc_body_append "email sent to \"$email\"
    " + } + } +} + if {$fail_p} { doc_body_append "

    [_ dotlrn.lt_Some_of_the_emails_fa]

    " } @@ -121,4 +163,3 @@ [_ dotlrn.lt_You_may_now_choose_to]

    " doc_body_append "[_ dotlrn.or_return_to] [_ dotlrn.User_Management]." - Index: openacs-4/packages/dotlrn/www/admin/users-chunk-large-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/users-chunk-large-oracle.xql,v diff -u -r1.13 -r1.14 --- openacs-4/packages/dotlrn/www/admin/users-chunk-large-oracle.xql 4 Dec 2002 09:51:04 -0000 1.13 +++ openacs-4/packages/dotlrn/www/admin/users-chunk-large-oracle.xql 29 May 2003 18:05:01 -0000 1.14 @@ -41,6 +41,7 @@ and persons.person_id = acs_rels.object_id_two and acs_rels.object_id_one = acs.magic_object_id('registered_users') and acs_rels.rel_id = membership_rels.rel_id + and users.email_verified_p = 't' and not exists (select 1 from acs_rels a, dotlrn_user_types Index: openacs-4/packages/dotlrn/www/admin/users-chunk-large-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/users-chunk-large-postgresql.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/admin/users-chunk-large-postgresql.xql 4 Dec 2002 09:51:04 -0000 1.2 +++ openacs-4/packages/dotlrn/www/admin/users-chunk-large-postgresql.xql 29 May 2003 18:05:01 -0000 1.3 @@ -41,6 +41,7 @@ and persons.person_id = acs_rels.object_id_two and acs_rels.object_id_one = acs__magic_object_id('registered_users') and acs_rels.rel_id = membership_rels.rel_id + and users.email_verified_p = 't' and not exists (select 1 from acs_rels a, dotlrn_user_types Index: openacs-4/packages/dotlrn/www/admin/users-chunk-medium-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/users-chunk-medium-oracle.xql,v diff -u -r1.14 -r1.15 --- openacs-4/packages/dotlrn/www/admin/users-chunk-medium-oracle.xql 4 Dec 2002 09:51:04 -0000 1.14 +++ openacs-4/packages/dotlrn/www/admin/users-chunk-medium-oracle.xql 29 May 2003 18:05:01 -0000 1.15 @@ -52,6 +52,7 @@ and persons.person_id = acs_rels.object_id_two and acs_rels.object_id_one = acs.magic_object_id('registered_users') and acs_rels.rel_id = membership_rels.rel_id + and users.email_verified_p = 't' and not exists (select 1 from acs_rels a, dotlrn_user_types Index: openacs-4/packages/dotlrn/www/admin/users-chunk-medium-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/users-chunk-medium-postgresql.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/admin/users-chunk-medium-postgresql.xql 4 Dec 2002 09:51:04 -0000 1.2 +++ openacs-4/packages/dotlrn/www/admin/users-chunk-medium-postgresql.xql 29 May 2003 18:05:01 -0000 1.3 @@ -52,6 +52,7 @@ and persons.person_id = acs_rels.object_id_two and acs_rels.object_id_one = acs__magic_object_id('registered_users') and acs_rels.rel_id = membership_rels.rel_id + and users.email_verified_p = 't' and not exists (select 1 from acs_rels a, dotlrn_user_types Index: openacs-4/packages/dotlrn/www/admin/users-chunk-small-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/users-chunk-small-oracle.xql,v diff -u -r1.14 -r1.15 --- openacs-4/packages/dotlrn/www/admin/users-chunk-small-oracle.xql 4 Dec 2002 09:51:04 -0000 1.14 +++ openacs-4/packages/dotlrn/www/admin/users-chunk-small-oracle.xql 29 May 2003 18:05:01 -0000 1.15 @@ -36,6 +36,7 @@ and persons.person_id = acs_rels.object_id_two and acs_rels.object_id_one = acs.magic_object_id('registered_users') and acs_rels.rel_id = membership_rels.rel_id + and users.email_verified_p = 't' and not exists (select 1 from acs_rels a, dotlrn_user_types Index: openacs-4/packages/dotlrn/www/admin/users-chunk-small-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/users-chunk-small-postgresql.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/admin/users-chunk-small-postgresql.xql 4 Dec 2002 09:51:04 -0000 1.2 +++ openacs-4/packages/dotlrn/www/admin/users-chunk-small-postgresql.xql 29 May 2003 18:05:01 -0000 1.3 @@ -37,6 +37,7 @@ and persons.person_id = acs_rels.object_id_two and acs_rels.object_id_one = acs__magic_object_id('registered_users') and acs_rels.rel_id = membership_rels.rel_id + and users.email_verified_p = 't' and not exists (select 1 from acs_rels a, dotlrn_user_types Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/doc/dotlrn-install.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/graphics/logo-comm.jpg'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/graphics/logo-course.jpg'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn/www/graphics/logo-user.jpg'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/dotlrn-bm/dotlrn-bm.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-bm/dotlrn-bm.info,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn-bm/dotlrn-bm.info 2 Jul 2002 23:01:50 -0000 1.3 +++ openacs-4/packages/dotlrn-bm/dotlrn-bm.info 29 May 2003 18:05:17 -0000 1.4 @@ -18,13 +18,6 @@ - - - - - - - Index: openacs-4/packages/dotlrn-calendar/dotlrn-calendar.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-calendar/dotlrn-calendar.info,v diff -u -r1.8 -r1.9 --- openacs-4/packages/dotlrn-calendar/dotlrn-calendar.info 18 Jul 2002 18:24:33 -0000 1.8 +++ openacs-4/packages/dotlrn-calendar/dotlrn-calendar.info 29 May 2003 18:05:24 -0000 1.9 @@ -19,16 +19,8 @@ - - - - - - - - - + Index: openacs-4/packages/dotlrn-dotlrn/dotlrn-dotlrn.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-dotlrn/dotlrn-dotlrn.info,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn-dotlrn/dotlrn-dotlrn.info 9 Jul 2002 20:31:37 -0000 1.9 +++ openacs-4/packages/dotlrn-dotlrn/dotlrn-dotlrn.info 29 May 2003 18:05:30 -0000 1.10 @@ -19,18 +19,6 @@ - - - - - - - - - - - - Index: openacs-4/packages/dotlrn-faq/dotlrn-faq.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-faq/dotlrn-faq.info,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn-faq/dotlrn-faq.info 17 Jul 2002 20:20:45 -0000 1.9 +++ openacs-4/packages/dotlrn-faq/dotlrn-faq.info 29 May 2003 18:05:36 -0000 1.10 @@ -18,15 +18,6 @@ - - - - - - - - - Index: openacs-4/packages/dotlrn-forums/dotlrn-forums.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-forums/dotlrn-forums.info,v diff -u -r1.7 -r1.8 --- openacs-4/packages/dotlrn-forums/dotlrn-forums.info 4 Dec 2002 09:51:50 -0000 1.7 +++ openacs-4/packages/dotlrn-forums/dotlrn-forums.info 29 May 2003 18:05:42 -0000 1.8 @@ -18,22 +18,6 @@ - - - - - - - - - - - - - - - - Index: openacs-4/packages/dotlrn-forums/tcl/dotlrn-forums-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-forums/tcl/dotlrn-forums-procs.tcl,v diff -u -r1.11 -r1.12 --- openacs-4/packages/dotlrn-forums/tcl/dotlrn-forums-procs.tcl 4 Dec 2002 09:51:50 -0000 1.11 +++ openacs-4/packages/dotlrn-forums/tcl/dotlrn-forums-procs.tcl 29 May 2003 18:05:42 -0000 1.12 @@ -225,13 +225,17 @@ # Set up notifications for all the forums that have set for autosubscription - db_foreach select_forums {} { + set type_id [notification::type::get_type_id -short_name forums_forum_notif] + set interval_id [notification::get_interval_id -name instant] + set delivery_method_id [notification::get_delivery_method_id -name email] + + foreach forum_id [db_list select_forums {}] { notification::request::new \ - -type_id [notification::type::get_type_id -short_name forums_forum_notif] \ + -type_id $type_id \ -user_id $user_id \ -object_id $forum_id \ - -interval_id [notification::get_interval_id -name instant] \ - -delivery_method_id [notification::get_delivery_method_id -name email] + -interval_id $interval_id \ + -delivery_method_id $delivery_method_id } } Index: openacs-4/packages/dotlrn-fs/dotlrn-fs.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-fs/dotlrn-fs.info,v diff -u -r1.19 -r1.20 --- openacs-4/packages/dotlrn-fs/dotlrn-fs.info 11 Dec 2002 14:01:50 -0000 1.19 +++ openacs-4/packages/dotlrn-fs/dotlrn-fs.info 29 May 2003 18:05:48 -0000 1.20 @@ -16,24 +16,9 @@ - + - - - - - - - - - - - - - - - Index: openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl,v diff -u -r1.80 -r1.81 --- openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl 18 Feb 2003 21:15:29 -0000 1.80 +++ openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl 29 May 2003 18:05:49 -0000 1.81 @@ -151,11 +151,21 @@ -pretty_name $folder \ -parent_id $folder_id ] + + # We also don't want anyone other than the site-wide admin to be + # able to edit or delete these folders, because doing so breaks + # the standard portlets created to display them. Admins can write + # to them, that's all. + + permission::set_not_inherit -object_id $a_folder_id + permission::grant -party_id $members -object_id $a_folder_id -privilege read + permission::grant -party_id $admins -object_id $a_folder_id -privilege write site_node_object_map::new -object_id $a_folder_id -node_id $node_id if {[string equal $root_community_type dotlrn_class_instance]} { - # a class instance, has some "folder contents" pe's that need filling + + # a class instance has some "folder contents" pe's that need filling set portlet_list [parameter::get_from_package_key \ -package_key [my_package_key] \ -parameter "dotlrn_class_instance_folders_to_show" @@ -170,6 +180,7 @@ ] portal::set_element_param $element_id folder_id $a_folder_id } + } } @@ -182,7 +193,13 @@ site_node_object_map::new -object_id $public_folder_id -node_id $node_id - # The public folder is available to all dotLRN Full Access Users + # The public folder is available to all dotLRN Full Access Users. Admins can + # write to it but can't delete it by default, because the non-member portlet + # expects it to exist. + + permission::set_not_inherit -object_id $public_folder_id + permission::grant -party_id $admins -object_id $public_folder_id -privilege write + set dotlrn_public [dotlrn::get_users_rel_segment_id] permission::grant -party_id $dotlrn_public -object_id $public_folder_id -privilege read @@ -540,12 +557,31 @@ # the object is something not in the public folder copy_fs_object \ - -object_id [ns_set get $item object_id] \ + -object_id $object_id \ -target_folder_id $folder_id \ -user_id $user_id } + # Jerk around the permissions for the default folders in the community ... + + set root_community_type [dotlrn_community::get_toplevel_community_type_from_community_id \ + $old_community_id + ] + + set folder_list [parameter::get_from_package_key \ + -package_key [my_package_key] \ + -parameter "${root_community_type}_default_folders" + ] + + foreach folder [string trim [split $folder_list ',']] { + if { [db_0or1row get_default_folder {}] } { + permission::set_not_inherit -object_id $item_id + permission::grant -party_id $members -object_id $item_id -privilege read + permission::grant -party_id $admins -object_id $item_id -privilege write + } + } + # # portlet stuff # @@ -586,12 +622,9 @@ Currently either simple, folder or file. Optionall set up a node mapping on folders too. } { - if {[fs::simple_p -object_id $object_id]} { - fs::url_copy \ - -url_id $object_id \ - -target_folder_id $target_folder_id - + if {[content_extlink::extlink_p -item_id $object_id]} { + item::copy -item_id $object_id -target_folder_id $target_folder_id } elseif {[fs::folder_p -object_id $object_id]} { set name [fs_get_folder_name $object_id] @@ -618,7 +651,7 @@ foreach item_id $folder_contents { copy_fs_object \ - -object_id $item_id] \ + -object_id $item_id \ -target_folder_id $new_folder_id \ -user_id $user_id \ -node_id $node_id Index: openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.xql,v diff -u -r1.6 -r1.7 --- openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.xql 31 Jul 2002 21:18:33 -0000 1.6 +++ openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.xql 29 May 2003 18:05:49 -0000 1.7 @@ -4,11 +4,20 @@ - select folder_id - from fs_folders + select item_id + from cr_items where parent_id = :root_folder_id - and key = 'public' + and name = 'public' + + + select item_id + from cr_items + where parent_id = :folder_id + and name = :folder + + + Index: openacs-4/packages/dotlrn-news/dotlrn-news.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-news/dotlrn-news.info,v diff -u -r1.5 -r1.6 --- openacs-4/packages/dotlrn-news/dotlrn-news.info 17 Jul 2002 20:22:37 -0000 1.5 +++ openacs-4/packages/dotlrn-news/dotlrn-news.info 29 May 2003 18:05:55 -0000 1.6 @@ -19,15 +19,6 @@ - - - - - - - - - Index: openacs-4/packages/dotlrn-portlet/dotlrn-portlet.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-portlet/dotlrn-portlet.info,v diff -u -r1.13 -r1.14 --- openacs-4/packages/dotlrn-portlet/dotlrn-portlet.info 9 Jul 2002 21:42:16 -0000 1.13 +++ openacs-4/packages/dotlrn-portlet/dotlrn-portlet.info 29 May 2003 18:05:27 -0000 1.14 @@ -19,33 +19,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - Index: openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.adp,v diff -u -r1.14 -r1.15 --- openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.adp 11 Dec 2002 14:06:31 -0000 1.14 +++ openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.adp 29 May 2003 18:05:27 -0000 1.15 @@ -20,17 +20,21 @@ -<%= [dotlrn_community::get_role_pretty_plural -community_id $community_id -rel_type dotlrn_instructor_rel] %>: -

      - - - -
    • - <%= [acs_community_member_link -user_id $users(user_id) -label "$users(first_names) $users(last_name)"] %> - - (@users.email@) + + No community was specified + + + <%= [dotlrn_community::get_role_pretty_plural -community_id $community_id -rel_type dotlrn_instructor_rel] %>: +
        + + + +
      • + <%= [acs_community_member_link -user_id $users(user_id) -label "$users(first_names) $users(last_name)"] %> + + (@users.email@) + - @@ -48,9 +52,9 @@
      • <%= [acs_community_member_link -user_id $users(user_id) -label "$users(first_names) $users(last_name)"] %> - (@users.email@) + (@users.email@) + - @@ -69,17 +73,22 @@ <%= [acs_community_member_link -user_id $users(user_id) -label "$users(first_names) $users(last_name)"] %> (@users.email@) + - - + + + +
      • No <%= [dotlrn_community::get_role_pretty_plural -community_id $community_id -rel_type dotlrn_ca_rel] %> + +
      + + +
      + #dotlrn-portlet.Member_List#
    • #dotlrn-portlet.no_course_assistant_members#
    + - -
    -#dotlrn-portlet.Member_List# -
    - Index: openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.tcl 11 Dec 2002 14:06:31 -0000 1.9 +++ openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.tcl 29 May 2003 18:05:27 -0000 1.10 @@ -31,36 +31,40 @@ set referer [ad_conn url] set community_id $config(community_id) -set admin_p [dotlrn::user_can_admin_community_p -user_id $user_id -community_id $community_id] -set read_private_data_p [dotlrn::user_can_read_private_data_p -user_id $user_id] +if { ![string equal $community_id 0] } { -# get all the users in a list of ns_sets -set all_users_list [dotlrn_community::list_users $community_id] + set admin_p [dotlrn::user_can_admin_community_p -user_id $user_id -community_id $community_id] + set read_private_data_p [dotlrn::user_can_read_private_data_p -user_id $user_id] -set n_profs 0 -set n_tas 0 -set n_cas 0 + # get all the users in a list of ns_sets + set all_users_list [dotlrn_community::list_users $community_id] -# count how many of some types -foreach one_user_set $all_users_list { - if {[string equal [ns_set get $one_user_set rel_type] "dotlrn_instructor_rel"]} { - incr n_profs - } elseif {[string equal [ns_set get $one_user_set rel_type] "dotlrn_ta_rel"]} { - incr n_tas - } elseif {[string equal [ns_set get $one_user_set rel_type] "dotlrn_ca_rel"]} { - incr n_cas + set n_profs 0 + set n_tas 0 + set n_cas 0 + + # count how many of some types + foreach one_user_set $all_users_list { + if {[string equal [ns_set get $one_user_set rel_type] "dotlrn_instructor_rel"]} { + incr n_profs + } elseif {[string equal [ns_set get $one_user_set rel_type] "dotlrn_ta_rel"]} { + incr n_tas + } elseif {[string equal [ns_set get $one_user_set rel_type] "dotlrn_ca_rel"]} { + incr n_cas + } } -} -# stuff into a multirow -template::util::list_of_ns_sets_to_multirow \ - -rows $all_users_list \ - -var_name "users" + # stuff into a multirow + template::util::list_of_ns_sets_to_multirow \ + -rows $all_users_list \ + -var_name "users" -# Used in en_US version of some messages in adp -set instructor_role_pretty_plural [dotlrn_community::get_role_pretty_plural -community_id $community_id \ + # Used in en_US version of some messages in adp + set instructor_role_pretty_plural [dotlrn_community::get_role_pretty_plural -community_id $community_id \ -rel_type dotlrn_instructor_rel] -set teaching_assistant_role_pretty_plural [dotlrn_community::get_role_pretty_plural -community_id $community_id \ + set teaching_assistant_role_pretty_plural [dotlrn_community::get_role_pretty_plural -community_id $community_id \ -rel_type dotlrn_ta_rel] -set course_assistant_role_pretty_plural [dotlrn_community::get_role_pretty_plural -community_id $community_id \ - -rel_type dotlrn_ca_rel] \ No newline at end of file + set course_assistant_role_pretty_plural [dotlrn_community::get_role_pretty_plural -community_id $community_id \ + -rel_type dotlrn_ca_rel] +} + Index: openacs-4/packages/dotlrn-portlet/www/dotlrn-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-portlet/www/dotlrn-portlet.adp,v diff -u -r1.11 -r1.12 --- openacs-4/packages/dotlrn-portlet/www/dotlrn-portlet.adp 4 Dec 2002 09:50:08 -0000 1.11 +++ openacs-4/packages/dotlrn-portlet/www/dotlrn-portlet.adp 29 May 2003 18:05:27 -0000 1.12 @@ -43,3 +43,6 @@
    + + + Index: openacs-4/packages/dotlrn-static/dotlrn-static.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-static/dotlrn-static.info,v diff -u -r1.6 -r1.7 --- openacs-4/packages/dotlrn-static/dotlrn-static.info 21 Jul 2002 21:26:05 -0000 1.6 +++ openacs-4/packages/dotlrn-static/dotlrn-static.info 29 May 2003 18:06:02 -0000 1.7 @@ -18,13 +18,6 @@ - - - - - - - Index: openacs-4/packages/dotlrn-syllabus/dotlrn-syllabus.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-syllabus/dotlrn-syllabus.info,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn-syllabus/dotlrn-syllabus.info 29 Apr 2002 00:41:49 -0000 1.2 +++ openacs-4/packages/dotlrn-syllabus/dotlrn-syllabus.info 29 May 2003 18:05:05 -0000 1.3 @@ -18,25 +18,6 @@ - - - - - - - - - - - - - - - - - - - Index: openacs-4/packages/dotlrn-syllabus/tcl/syllabus-portlet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-syllabus/tcl/syllabus-portlet-procs.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn-syllabus/tcl/syllabus-portlet-procs.tcl 18 Feb 2003 21:14:43 -0000 1.9 +++ openacs-4/packages/dotlrn-syllabus/tcl/syllabus-portlet-procs.tcl 29 May 2003 18:05:05 -0000 1.10 @@ -107,11 +107,11 @@ } { set out_list [list] - set community_id [dotlrn_community::get_community_id] set element_id [portal::get_element_ids_by_ds \ [dotlrn_community::get_portal_id] \ [fs_portlet::get_my_name] ] + set root_folder_id \ [portal::get_element_param [lindex $element_id 0] folder_id] set public_folder_id \ Index: openacs-4/packages/dotlrn-syllabus/www/syllabus-admin-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-syllabus/www/syllabus-admin-portlet.adp,v diff -u -r1.4 -r1.5 --- openacs-4/packages/dotlrn-syllabus/www/syllabus-admin-portlet.adp 10 Nov 2002 18:16:48 -0000 1.4 +++ openacs-4/packages/dotlrn-syllabus/www/syllabus-admin-portlet.adp 29 May 2003 18:05:05 -0000 1.5 @@ -20,18 +20,21 @@ Index: openacs-4/packages/dotlrn-syllabus/www/syllabus-admin-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-syllabus/www/syllabus-admin-portlet.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn-syllabus/www/syllabus-admin-portlet.tcl 10 Nov 2002 18:16:48 -0000 1.3 +++ openacs-4/packages/dotlrn-syllabus/www/syllabus-admin-portlet.tcl 29 May 2003 18:05:05 -0000 1.4 @@ -33,7 +33,17 @@ set public_folder_id [lindex $syllabus_info_list 0] set syllabus_id [lindex $syllabus_info_list 1] set type [lindex $syllabus_info_list 2] +set community_id [dotlrn_community::get_community_id] set title [_ dotlrn-syllabus.pretty_name] set upload_url "file-storage/file-add?folder_id=$public_folder_id&lock_title_p=1&title=[ad_urlencode $title]" set link_to_url "file-storage/simple-add?folder_id=$public_folder_id&lock_title_p=1&title=[ad_urlencode $title]" +# DRB: community_id will be blank if we're called by the portal package portal preview +# code for the generic class portlet template. + +if { ![string equal $community_id ""] } { + set syllabus_info_list [syllabus_portlet::get_syllabus_info_list -community_id $community_id] + set public_folder_id [lindex $syllabus_info_list 0] + set syllabus_id [lindex $syllabus_info_list 1] + set type [lindex $syllabus_info_list 2] +} Index: openacs-4/packages/dotlrn-syllabus/www/syllabus-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-syllabus/www/syllabus-portlet.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/dotlrn-syllabus/www/syllabus-portlet.adp 4 Dec 2002 09:53:05 -0000 1.5 +++ openacs-4/packages/dotlrn-syllabus/www/syllabus-portlet.adp 29 May 2003 18:05:05 -0000 1.6 @@ -18,7 +18,7 @@ %> - + #dotlrn-syllabus.Go_to# @@ -27,7 +27,6 @@ #dotlrn-syllabus.pretty_name# - #dotlrn-syllabus.No_Syllabus_Found# Index: openacs-4/packages/dotlrn-syllabus/www/syllabus-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-syllabus/www/syllabus-portlet.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn-syllabus/www/syllabus-portlet.tcl 4 Dec 2002 09:53:05 -0000 1.3 +++ openacs-4/packages/dotlrn-syllabus/www/syllabus-portlet.tcl 29 May 2003 18:05:05 -0000 1.4 @@ -28,6 +28,7 @@ } array set config $cf +set community_id [dotlrn_community::get_community_id] set syllabus_info_list [syllabus_portlet::get_syllabus_info_list \ -community_id [dotlrn_community::get_community_id] @@ -37,3 +38,15 @@ set type [lindex $syllabus_info_list 2] set live_revision [lindex $syllabus_info_list 3] set file_upload_name [lindex $syllabus_info_list 4] + +# DRB: community_id will be blank if we're called by the portal package portal preview +# code for the generic class portlet template. + +if { ![string equal $community_id ""] } { + set syllabus_info_list [syllabus_portlet::get_syllabus_info_list -community_id $community_id] + set public_folder_id [lindex $syllabus_info_list 0] + set syllabus_id [lindex $syllabus_info_list 1] + set type [lindex $syllabus_info_list 2] + set live_revision [lindex $syllabus_info_list 3] + set file_upload_name [lindex $syllabus_info_list 4] +} Index: openacs-4/packages/faq-portlet/faq-portlet.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/faq-portlet/faq-portlet.info,v diff -u -r1.12 -r1.13 --- openacs-4/packages/faq-portlet/faq-portlet.info 17 Jul 2002 20:20:31 -0000 1.12 +++ openacs-4/packages/faq-portlet/faq-portlet.info 29 May 2003 18:05:33 -0000 1.13 @@ -19,24 +19,6 @@ - - - - - - - - - - - - - - - - - - Index: openacs-4/packages/faq-portlet/www/faq-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/faq-portlet/www/faq-portlet.adp,v diff -u -r1.15 -r1.16 --- openacs-4/packages/faq-portlet/www/faq-portlet.adp 4 Dec 2002 09:53:40 -0000 1.15 +++ openacs-4/packages/faq-portlet/www/faq-portlet.adp 29 May 2003 18:05:33 -0000 1.16 @@ -91,3 +91,9 @@   + + + + + + Index: openacs-4/packages/forums-portlet/forums-portlet.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums-portlet/forums-portlet.info,v diff -u -r1.3 -r1.4 --- openacs-4/packages/forums-portlet/forums-portlet.info 21 Jul 2002 21:26:35 -0000 1.3 +++ openacs-4/packages/forums-portlet/forums-portlet.info 29 May 2003 18:05:39 -0000 1.4 @@ -19,23 +19,6 @@ - - - - - - - - - - - - - - - - - Index: openacs-4/packages/forums-portlet/www/forums-portlet-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums-portlet/www/Attic/forums-portlet-postgresql.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/forums-portlet/www/forums-portlet-postgresql.xql 21 Jul 2002 21:26:35 -0000 1.2 +++ openacs-4/packages/forums-portlet/www/forums-portlet-postgresql.xql 29 May 2003 18:05:39 -0000 1.3 @@ -12,7 +12,7 @@ where site_nodes.object_id = forums_forums.package_id) as url, forums_forums.forum_id, forums_forums.name, - case when last_modified > (now() - 1) then 't' else 'f' end as new_p + case when last_modified > (cast(current_timestamp as date)- 1) then 't' else 'f' end as new_p from forums_forums_enabled forums_forums, acs_objects where acs_objects.object_id = forums_forums.forum_id and Index: openacs-4/packages/forums-portlet/www/forums-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums-portlet/www/forums-portlet.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/forums-portlet/www/forums-portlet.tcl 10 Nov 2002 17:33:35 -0000 1.9 +++ openacs-4/packages/forums-portlet/www/forums-portlet.tcl 29 May 2003 18:05:39 -0000 1.10 @@ -19,7 +19,7 @@ set shaded_p $config(shaded_p) set list_of_package_ids $config(package_id) set one_instance_p [ad_decode [llength $list_of_package_ids] 1 1 0] -set can_read_private_data_p [acs_privacy::user_can_read_private_data_p -object_id [ad_conn package_id]] +set can_read_private_data_p [dotlrn::user_can_read_private_data_p] set query select_forums Index: openacs-4/packages/fs-portlet/fs-portlet.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/fs-portlet/fs-portlet.info,v diff -u -r1.11 -r1.12 --- openacs-4/packages/fs-portlet/fs-portlet.info 23 Oct 2002 12:32:12 -0000 1.11 +++ openacs-4/packages/fs-portlet/fs-portlet.info 29 May 2003 18:05:45 -0000 1.12 @@ -19,25 +19,6 @@ - - - - - - - - - - - - - - - - - - - Index: openacs-4/packages/fs-portlet/www/fs-contents-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/fs-portlet/www/fs-contents-portlet.adp,v diff -u -r1.9 -r1.10 --- openacs-4/packages/fs-portlet/www/fs-contents-portlet.adp 4 Dec 2002 09:54:15 -0000 1.9 +++ openacs-4/packages/fs-portlet/www/fs-contents-portlet.adp 29 May 2003 18:05:45 -0000 1.10 @@ -35,5 +35,4 @@ - Index: openacs-4/packages/fs-portlet/www/fs-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/fs-portlet/www/fs-portlet.adp,v diff -u -r1.24 -r1.25 --- openacs-4/packages/fs-portlet/www/fs-portlet.adp 11 Dec 2002 14:10:19 -0000 1.24 +++ openacs-4/packages/fs-portlet/www/fs-portlet.adp 29 May 2003 18:05:45 -0000 1.25 @@ -45,6 +45,7 @@ + @@ -114,3 +115,6 @@   + + + Index: openacs-4/packages/new-portal/new-portal.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/new-portal.info,v diff -u -r1.18 -r1.19 --- openacs-4/packages/new-portal/new-portal.info 12 Nov 2002 08:38:41 -0000 1.18 +++ openacs-4/packages/new-portal/new-portal.info 29 May 2003 18:04:54 -0000 1.19 @@ -21,103 +21,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Index: openacs-4/packages/new-portal/catalog/new-portal.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/catalog/new-portal.en_US.ISO-8859-1.xml,v diff -u -r1.7 -r1.8 --- openacs-4/packages/new-portal/catalog/new-portal.en_US.ISO-8859-1.xml 11 Mar 2003 20:52:38 -0000 1.7 +++ openacs-4/packages/new-portal/catalog/new-portal.en_US.ISO-8859-1.xml 29 May 2003 18:04:55 -0000 1.8 @@ -36,6 +36,8 @@ Simple 3-Column A simple red table-based theme simple + MIT Sloan Theme + Sloan transaction failed Unused Portlets Index: openacs-4/packages/new-portal/sql/oracle/defaults.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/sql/oracle/defaults.sql,v diff -u -r1.21 -r1.22 --- openacs-4/packages/new-portal/sql/oracle/defaults.sql 12 Nov 2002 08:38:41 -0000 1.21 +++ openacs-4/packages/new-portal/sql/oracle/defaults.sql 29 May 2003 18:04:55 -0000 1.22 @@ -86,6 +86,12 @@ resource_dir => 'themes/deco-theme' ); + theme_id := portal_element_theme.new ( + name => 'Sloan', + description => 'MIT Sloan theme', + filename => 'themes/sloan-theme', + resource_dir => 'themes/sloan-theme'); + end; / show errors Index: openacs-4/packages/new-portal/sql/postgresql/api-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/sql/postgresql/api-create.sql,v diff -u -r1.10 -r1.11 --- openacs-4/packages/new-portal/sql/postgresql/api-create.sql 9 Aug 2002 20:56:28 -0000 1.10 +++ openacs-4/packages/new-portal/sql/postgresql/api-create.sql 29 May 2003 18:04:55 -0000 1.11 @@ -25,7 +25,7 @@ select define_function_args('portal_page__new','page_id,pretty_name,portal_id,layout_id,object_type;portal_page,creation_date,creation_user,creation_ip,context_id'); -create function portal_page__new (integer,varchar,integer,integer,varchar,timestamp,integer,varchar,integer) +create function portal_page__new (integer,varchar,integer,integer,varchar,timestamptz,integer,varchar,integer) returns integer as ' declare p_page_id alias for $1; @@ -128,7 +128,7 @@ select define_function_args('portal__new','portal_id,name,theme_id,layout_id,template_id,default_page_name,object_type;portal,creation_date,creation_user,creation_ip,context_id'); -create function portal__new (integer,varchar,integer,integer,integer,varchar,varchar,timestamp,integer,varchar,integer) +create function portal__new (integer,varchar,integer,integer,integer,varchar,varchar,timestamptz,integer,varchar,integer) returns integer as ' declare p_portal_id alias for $1; @@ -303,7 +303,7 @@ select define_function_args('portal_element_theme__new','theme_id,name,description,filename,resource_dir,object_type;portal_element_theme,creation_date,creation_user,creation_ip,context_id'); -create function portal_element_theme__new (integer,varchar,varchar,varchar,varchar,varchar,timestamp,integer,varchar,integer) +create function portal_element_theme__new (integer,varchar,varchar,varchar,varchar,varchar,timestamptz,integer,varchar,integer) returns integer as ' declare p_theme_id alias for $1; @@ -378,7 +378,7 @@ select define_function_args('portal_layout__new','layout_id,name,description,filename,resource_dir,object_type;portal_layout,creation_date,creation_user,creation_ip,context_id'); -create function portal_layout__new (integer,varchar,varchar,varchar,varchar,varchar,timestamp,integer,varchar,integer) +create function portal_layout__new (integer,varchar,varchar,varchar,varchar,varchar,timestamptz,integer,varchar,integer) returns integer as ' declare p_layout_id alias for $1; @@ -485,7 +485,7 @@ select define_function_args('portal_datasource__new','datasource_id,name,description,object_type;portal_datasource,creation_date,creation_user,creation_ip,context_id'); -create function portal_datasource__new (integer,varchar,varchar,varchar,timestamp,integer,varchar,integer) +create function portal_datasource__new (integer,varchar,varchar,varchar,timestamptz,integer,varchar,integer) returns integer as ' declare p_datasource_id alias for $1; -- default null Index: openacs-4/packages/new-portal/sql/postgresql/defaults.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/sql/postgresql/defaults.sql,v diff -u -r1.5 -r1.6 --- openacs-4/packages/new-portal/sql/postgresql/defaults.sql 12 Nov 2002 08:38:41 -0000 1.5 +++ openacs-4/packages/new-portal/sql/postgresql/defaults.sql 29 May 2003 18:04:55 -0000 1.6 @@ -25,7 +25,6 @@ returns integer as ' declare layout_id portal_layouts.layout_id%TYPE; - theme_id portal_element_themes.theme_id%TYPE; begin -- two-column layout, without a header. @@ -64,27 +63,34 @@ perform portal_layout__add_region(layout_id, ''3''); -- Now, some element themes. - theme_id := portal_element_theme__new( + perform portal_element_theme__new( ''#new-portal.simple_red_theme_name#'', ''#new-portal.simple_red_theme_description#'', ''themes/simple-theme'', ''themes/simple-theme'' ); - theme_id := portal_element_theme__new( + perform portal_element_theme__new( ''#new-portal.nada_theme_name#'', ''#new-portal.nada_theme_description#'', ''themes/nada-theme'', ''themes/nada-theme'' ); - theme_id := portal_element_theme__new( + perform portal_element_theme__new( ''#new-portal.deco_theme_name#'', ''#new-portal.deco_theme_description#'', ''themes/deco-theme'', ''themes/deco-theme'' ); + perform portal_element_theme__new ( + ''#new-portal.sloan_theme_name#'', -- name + ''#new-portal.sloan_theme_description#'', -- description + ''themes/sloan-theme'', -- filename + ''themes/sloan-theme'' -- directory + ); + return 0; end;' language 'plpgsql'; Index: openacs-4/packages/new-portal/tcl/portal-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/tcl/portal-procs.tcl,v diff -u -r1.163 -r1.164 --- openacs-4/packages/new-portal/tcl/portal-procs.tcl 9 Dec 2002 14:34:16 -0000 1.163 +++ openacs-4/packages/new-portal/tcl/portal-procs.tcl 29 May 2003 18:04:55 -0000 1.164 @@ -465,7 +465,7 @@ - + " append template "$page_name_chunk" @@ -1556,10 +1556,10 @@ } { global errorInfo - ns_log error "*** portal::render_element show callback Error! ($element(ds_name)) ***\n\n $errmsg\n\n$errorInfo\n\n" + ns_log error "*** portal::evaluate_element callback Error! ***\n\n $errmsg\n\n$errorInfo\n\n" # ad_return_complaint 1 "*** portal::render_element show callback Error! ***

    $errmsg\n\n" - set element(content) " You have found a bug in our code.

    Please notify the webmaster and include the following text. Thank You.

    *** portal::render_element show callback Error! ***\n\n $errmsg
    \n\n" + set element(content) "You have found a bug in our code.

    Please notify the webmaster and include the following text. Thank You.

    *** portal::evaluate_element callback Error! ***\n\n $errmsg
    \n\n" } @@ -1638,9 +1638,10 @@ [datasource_call \ $element(datasource_id) "Show" [list [array get config] ]] } \ errmsg ] } { - ns_log error "*** portal::render_element show callback Error! ***\n\n $errmsg\n\n" + global errorInfo + ns_log error "*** portal::evaluate_element_raw callback Error ! ***\n\n $errmsg\n\n$errorInfo\n\n" ad_return -error - ad_return_complaint 1 "*** portal::render_element show callback Error! ***

    $errmsg\n\n" + ad_return_complaint 1 "*** portal::evaluate_element_raw show callback Error! ***

    $errmsg\n\n" } @@ -2316,3 +2317,8 @@ } } + + + + + Index: openacs-4/packages/new-portal/www/place-element.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/www/place-element.adp,v diff -u -r1.38 -r1.39 --- openacs-4/packages/new-portal/www/place-element.adp 12 Nov 2002 08:38:41 -0000 1.38 +++ openacs-4/packages/new-portal/www/place-element.adp 29 May 2003 18:04:55 -0000 1.39 @@ -72,7 +72,7 @@ -

    + - + - + - + - +
    Index: openacs-4/packages/new-portal/www/themes/sloan-theme.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/www/themes/sloan-theme.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/new-portal/www/themes/sloan-theme.adp 4 Dec 2002 09:54:47 -0000 1.2 +++ openacs-4/packages/new-portal/www/themes/sloan-theme.adp 29 May 2003 18:04:55 -0000 1.3 @@ -25,9 +25,9 @@ <%= [string toupper @name@] %>
    @@ -47,10 +47,10 @@
    Index: openacs-4/packages/news-portlet/news-portlet.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/news-portlet/news-portlet.info,v diff -u -r1.9 -r1.10 --- openacs-4/packages/news-portlet/news-portlet.info 23 Oct 2002 12:33:00 -0000 1.9 +++ openacs-4/packages/news-portlet/news-portlet.info 29 May 2003 18:05:52 -0000 1.10 @@ -19,24 +19,6 @@ - - - - - - - - - - - - - - - - - - Index: openacs-4/packages/profile-provider/profile-provider.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/profile-provider/profile-provider.info,v diff -u -r1.3 -r1.4 --- openacs-4/packages/profile-provider/profile-provider.info 9 Jul 2002 02:56:29 -0000 1.3 +++ openacs-4/packages/profile-provider/profile-provider.info 29 May 2003 18:05:08 -0000 1.4 @@ -18,21 +18,6 @@ - - - - - - - - - - - - - - - Index: openacs-4/packages/profile-provider/sql/postgresql/profiled-group-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/profile-provider/sql/postgresql/profiled-group-create.sql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/profile-provider/sql/postgresql/profiled-group-create.sql 29 Mar 2002 16:53:02 -0000 1.1 +++ openacs-4/packages/profile-provider/sql/postgresql/profiled-group-create.sql 29 May 2003 18:05:08 -0000 1.2 @@ -34,7 +34,7 @@ select define_function_args ('profiled_group__new','group_id,profile_provider,group_name,join_policy,email,url,object_type;profiled_group,creation_date,creation_user,creation_ip'); -create function profiled_group__new(integer,integer,varchar,varchar,varchar,varchar,varchar,timestamp,integer,varchar) +create function profiled_group__new(integer,integer,varchar,varchar,varchar,varchar,varchar,timestamptz,integer,varchar) returns integer as ' DECLARE p_group_id alias for $1; Index: openacs-4/packages/profile-provider/sql/postgresql/profiled-group-drop.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/profile-provider/sql/postgresql/profiled-group-drop.sql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/profile-provider/sql/postgresql/profiled-group-drop.sql 29 Mar 2002 16:53:02 -0000 1.1 +++ openacs-4/packages/profile-provider/sql/postgresql/profiled-group-drop.sql 29 May 2003 18:05:08 -0000 1.2 @@ -5,7 +5,7 @@ -- @version $Id$ -- -drop function profiled_group__new(integer,integer,varchar,varchar,varchar,varchar,varchar,timestamp,integer,varchar); +drop function profiled_group__new(integer,integer,varchar,varchar,varchar,varchar,varchar,timestamptz,integer,varchar); drop function profiled_group__delete(integer); Index: openacs-4/packages/static-portlet/static-portlet.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/static-portlet.info,v diff -u -r1.10 -r1.11 --- openacs-4/packages/static-portlet/static-portlet.info 11 Dec 2002 14:12:33 -0000 1.10 +++ openacs-4/packages/static-portlet/static-portlet.info 29 May 2003 18:05:59 -0000 1.11 @@ -19,36 +19,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Index: openacs-4/packages/static-portlet/sql/postgresql/static-core-drop.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/sql/postgresql/static-core-drop.sql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/static-portlet/sql/postgresql/static-core-drop.sql 9 Aug 2002 18:39:33 -0000 1.2 +++ openacs-4/packages/static-portlet/sql/postgresql/static-core-drop.sql 29 May 2003 18:05:59 -0000 1.3 @@ -81,7 +81,7 @@ -- drop function static_portal_content_item__new ( - integer, varchar, varchar, varchar, timestamp, integer,varchar, integer + integer, varchar, varchar, varchar, timestamptz, integer,varchar, integer ) ; drop function static_portal_content_item__delete ( integer); Index: openacs-4/packages/static-portlet/sql/postgresql/static-core.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/sql/postgresql/static-core.sql,v diff -u -r1.3 -r1.4 --- openacs-4/packages/static-portlet/sql/postgresql/static-core.sql 9 Aug 2002 18:39:33 -0000 1.3 +++ openacs-4/packages/static-portlet/sql/postgresql/static-core.sql 29 May 2003 18:05:59 -0000 1.4 @@ -104,7 +104,7 @@ varchar, -- pretty_name in static_portal_content.pretty_name%TYPE default null, varchar, -- content in static_portal_content.content%TYPE default null, varchar, -- object_type in acs_objects.object_type%TYPE default [static_portal_content], - timestamp, -- creation_date in acs_objects.creation_date%TYPE default sysdate, + timestamptz, -- creation_date in acs_objects.creation_date%TYPE default sysdate, integer, -- creation_user in acs_objects.creation_user%TYPE default null, varchar, -- creation_ip in acs_objects.creation_ip%TYPE default null, integer -- context_id in acs_objects.context_id%TYPE default null Index: openacs-4/packages/static-portlet/www/element-new.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/Attic/element-new.adp,v diff -u -r1.6 -r1.7 --- openacs-4/packages/static-portlet/www/element-new.adp 10 Nov 2002 17:44:39 -0000 1.6 +++ openacs-4/packages/static-portlet/www/element-new.adp 29 May 2003 18:05:59 -0000 1.7 @@ -31,3 +31,7 @@

    + + + + Index: openacs-4/packages/static-portlet/www/element-new.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/Attic/element-new.tcl,v diff -u -r1.12 -r1.13 --- openacs-4/packages/static-portlet/www/element-new.tcl 4 Dec 2002 09:56:14 -0000 1.12 +++ openacs-4/packages/static-portlet/www/element-new.tcl 29 May 2003 18:05:59 -0000 1.13 @@ -50,6 +50,11 @@ set control_panel_text "[_ static-portlet.Control_Panel]" } +#these are set for display and instructions. +set community_id $package_id + +set portal_name [portal::get_name $portal_id] + form create new_static_element element create new_static_element pretty_name \ @@ -103,3 +108,14 @@ ad_returnredirect $referer ad_script_abort } + + + + + + + + + + + Index: openacs-4/packages/static-portlet/www/static-admin-portlet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/static-admin-portlet.adp,v diff -u -r1.13 -r1.14 --- openacs-4/packages/static-portlet/www/static-admin-portlet.adp 11 Dec 2002 14:12:33 -0000 1.13 +++ openacs-4/packages/static-portlet/www/static-admin-portlet.adp 29 May 2003 18:05:59 -0000 1.14 @@ -18,6 +18,10 @@ %> + + No community specified + +

    - +
    Index: openacs-4/packages/static-portlet/www/static-admin-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/static-admin-portlet.tcl,v diff -u -r1.15 -r1.16 --- openacs-4/packages/static-portlet/www/static-admin-portlet.tcl 11 Dec 2002 14:12:33 -0000 1.15 +++ openacs-4/packages/static-portlet/www/static-admin-portlet.tcl 29 May 2003 18:05:59 -0000 1.16 @@ -31,28 +31,34 @@ set package_id [dotlrn_community::get_community_id] } -if {![exists_and_not_null template_portal_id]} { - set template_portal_id [dotlrn_community::get_portal_id] -} +# DRB: when previewing from the portals package no community is defined, we don't +# want to portlet to bomb in this case. -if {[exists_and_not_null return_url]} { - set referer $return_url -} +if { ![string equal $package_id ""] } { -if {![exists_and_not_null referer]} { - set referer [ad_conn url] -} + if {![exists_and_not_null template_portal_id]} { + set template_portal_id [dotlrn_community::get_portal_id] + } -set element_pretty_name [parameter::get_from_package_key -localize -package_key static-portlet -parameter static_admin_portlet_element_pretty_name] + if {[exists_and_not_null return_url]} { + set referer $return_url + } -db_multirow content select_content { - select content_id, - pretty_name - from static_portal_content - where package_id = :package_id -} { - set pretty_name [lang::util::localize $pretty_name] -} + if {![exists_and_not_null referer]} { + set referer [ad_conn url] + } + set element_pretty_name [ad_parameter static_admin_portlet_element_pretty_name static-portlet "Custom Portlet"] + set element_pretty_plural [ad_parameter static_admin_portlet_element_pretty_plural static-portlet "Custom Portlets"] -set applet_url "[dotlrn_applet::get_url]/[static_portlet::my_package_key]" + ns_log notice "package_id = $package_id" + db_multirow content select_content { + select content_id, + pretty_name + from static_portal_content + where package_id = :package_id + } + + set applet_url "[dotlrn_applet::get_url]/[static_portlet::my_package_key]" + +} Index: openacs-4/packages/user-profile/user-profile.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/user-profile/user-profile.info,v diff -u -r1.3 -r1.4 --- openacs-4/packages/user-profile/user-profile.info 9 Jul 2002 02:56:29 -0000 1.3 +++ openacs-4/packages/user-profile/user-profile.info 29 May 2003 18:05:11 -0000 1.4 @@ -18,25 +18,6 @@ - - - - - - - - - - - - - - - - - - -