Index: openacs-4/packages/dotlrn/tcl/dotlrn-main-portlet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/dotlrn-main-portlet-procs.tcl,v diff -u -r1.14 -r1.15 --- openacs-4/packages/dotlrn/tcl/dotlrn-main-portlet-procs.tcl 15 Jan 2002 22:23:41 -0000 1.14 +++ openacs-4/packages/dotlrn/tcl/dotlrn-main-portlet-procs.tcl 21 Jan 2002 06:30:11 -0000 1.15 @@ -22,7 +22,7 @@ ad_proc -public get_pretty_name { } { - return "My Groups" + return [ad_parameter dotlrn_main_portlet_pretty_name] } ad_proc -public link { @@ -59,30 +59,11 @@ @author ben@openforce.net @creation-date Nov 2001 } { - array set config $cf - - set user_id [ad_get_user_id] - - # This is not templated. OH NO. I am a horrible, horrible, - # little man. (ben) - - set return_html "" - set communities [dotlrn_community::get_all_communities_by_user $user_id] - - foreach community $communities { - set url [dotlrn_community::get_url_from_package_id -package_id [lindex $community 4]] - set name [lindex $community 3] - - append return_html "\n" - } - - if {[dotlrn::user_can_browse_p $user_id]} { - append return_html "\n" - append return_html "\n" - } - - append return_html "
${name}

\[Subscribe to a new community\]
" - return $return_html + # no return call required with the helper proc + portal::show_proc_helper \ + -template_src "dotlrn-main-portlet" \ + -package_key "dotlrn" \ + -config_list $cf } ad_proc -public edit { 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.12 -r1.13 --- openacs-4/packages/dotlrn/tcl/dotlrn-security-procs.tcl 11 Jan 2002 21:51:50 -0000 1.12 +++ openacs-4/packages/dotlrn/tcl/dotlrn-security-procs.tcl 21 Jan 2002 06:30:11 -0000 1.13 @@ -50,13 +50,20 @@ if {$rel_type == "dotlrn_full_user_rel"} { # Create a portal page for this user set portal_id [portal::create -name "Your dotLRN Workspace" $user_id] - - # Add the basic dotLRN class listing portlet - dotlrn_main_portlet::add_self_to_page $portal_id {} - - # Update the user and set the portal page correctly - ns_set put $extra_vars portal_id $portal_id + + # XXX AKS - portals having problems with the following + # two lines - if the next line is taken out of the + # transaction, it full acc user add works, but lim acc + # user add dosent. weird!!!! + # Add the basic dotLRN class listing portlet + # XXXX + dotlrn_main_portlet::add_self_to_page $portal_id {} + + # end XXXX + + # Update the user and set the portal page correctly + ns_set put $extra_vars portal_id $portal_id } # Add the relation (no need to feed in anything for object_id_one, or two for that matter). Index: openacs-4/packages/dotlrn/www/all-communities.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/all-communities.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/all-communities.adp 19 Jan 2002 22:54:20 -0000 1.2 +++ openacs-4/packages/dotlrn/www/all-communities.adp 21 Jan 2002 06:30:11 -0000 1.3 @@ -1,6 +1,7 @@ @context_bar@ All Communities +@portal_id@

Index: openacs-4/packages/dotlrn/www/all-communities.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/all-communities.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn/www/all-communities.tcl 15 Jan 2002 22:23:41 -0000 1.1 +++ openacs-4/packages/dotlrn/www/all-communities.tcl 21 Jan 2002 06:30:11 -0000 1.2 @@ -9,6 +9,7 @@ context_bar:onevalue } +set portal_id "" set context_bar {{All Communities}} ad_return_template Index: openacs-4/packages/dotlrn/www/applets.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/applets.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn/www/applets.adp 19 Jan 2002 22:54:20 -0000 1.1 +++ openacs-4/packages/dotlrn/www/applets.adp 21 Jan 2002 06:30:11 -0000 1.2 @@ -1,5 +1,6 @@ Manage Applets @context_bar@ +@portal_id@ Index: openacs-4/packages/dotlrn/www/applets.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/applets.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/applets.tcl 20 Jan 2002 19:43:46 -0000 1.2 +++ openacs-4/packages/dotlrn/www/applets.tcl 21 Jan 2002 06:30:11 -0000 1.3 @@ -6,7 +6,7 @@ @version $Id$ } -query { } - +set portal_id "" set context_bar {{"one-community-admin" Admin} {Manage Applets}} ad_return_template Index: openacs-4/packages/dotlrn/www/community-type.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-type.adp,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn/www/community-type.adp 20 Jan 2002 22:25:42 -0000 1.3 +++ openacs-4/packages/dotlrn/www/community-type.adp 21 Jan 2002 06:30:11 -0000 1.4 @@ -1,6 +1,7 @@ @context_bar@ dotLRN: @pretty_name@ +@portal_id@

Index: openacs-4/packages/dotlrn/www/community-type.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-type.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/community-type.tcl 20 Jan 2002 19:43:46 -0000 1.2 +++ openacs-4/packages/dotlrn/www/community-type.tcl 21 Jan 2002 06:30:11 -0000 1.3 @@ -7,6 +7,8 @@ } -query { } +set portal_id "" + # Check that this is a community type if {[ad_parameter community_type_level_p] != 1} { ad_returnredirect "./" Index: openacs-4/packages/dotlrn/www/community.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/community.adp,v diff -u -r1.4 -r1.5 --- openacs-4/packages/dotlrn/www/community.adp 19 Jan 2002 17:26:07 -0000 1.4 +++ openacs-4/packages/dotlrn/www/community.adp 21 Jan 2002 06:30:11 -0000 1.5 @@ -1,6 +1,7 @@ @context_bar@ @pretty_name@ +@portal_id@ [ Index: openacs-4/packages/dotlrn/www/community.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/community.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/community.tcl 20 Jan 2002 19:43:46 -0000 1.2 +++ openacs-4/packages/dotlrn/www/community.tcl 21 Jan 2002 06:30:11 -0000 1.3 @@ -6,6 +6,7 @@ } -query { } +set portal_id "" ns_log Notice "BEN TEST!" Index: openacs-4/packages/dotlrn/www/configure-element.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure-element.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn/www/configure-element.adp 9 Nov 2001 18:12:55 -0000 1.1 +++ openacs-4/packages/dotlrn/www/configure-element.adp 21 Jan 2002 06:30:11 -0000 1.2 @@ -1,5 +1,7 @@ Configure Element -

+@portal_id@ +

+ @rendered_page@ Index: openacs-4/packages/dotlrn/www/configure-element.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure-element.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn/www/configure-element.tcl 20 Jan 2002 19:43:46 -0000 1.3 +++ openacs-4/packages/dotlrn/www/configure-element.tcl 21 Jan 2002 06:30:11 -0000 1.4 @@ -10,6 +10,8 @@ op:notnull } +set portal_id "" + # Check if this is a community type level thing if {[ad_parameter community_type_level_p] == 1} { ad_returnredirect "one-community-type" Index: openacs-4/packages/dotlrn/www/configure.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/configure.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/configure.adp 9 Nov 2001 04:03:02 -0000 1.2 +++ openacs-4/packages/dotlrn/www/configure.adp 21 Jan 2002 06:30:11 -0000 1.3 @@ -1,5 +1,7 @@ Configure @name@ -

+@portal_id@ +

+ @rendered_page@ Index: openacs-4/packages/dotlrn/www/index-not-a-user.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/index-not-a-user.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/index-not-a-user.adp 11 Dec 2001 03:19:48 -0000 1.2 +++ openacs-4/packages/dotlrn/www/index-not-a-user.adp 21 Jan 2002 06:30:11 -0000 1.3 @@ -1,5 +1,6 @@ dotLRN - Not a User +@portal_id@ Visit dotLRN Administration.

Index: openacs-4/packages/dotlrn/www/index-not-a-user.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/index-not-a-user.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn/www/index-not-a-user.tcl 11 Dec 2001 06:25:15 -0000 1.1 +++ openacs-4/packages/dotlrn/www/index-not-a-user.tcl 21 Jan 2002 06:30:11 -0000 1.2 @@ -8,9 +8,11 @@ } -properties { admin_p:onevalue admin_url:onevalue + portal_id:onevalue } set admin_p [dotlrn::admin_p] set admin_url [dotlrn::get_url]/admin +set portal_id "" ad_return_template Index: openacs-4/packages/dotlrn/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/index.adp,v diff -u -r1.12 -r1.13 --- openacs-4/packages/dotlrn/www/index.adp 10 Jan 2002 19:30:18 -0000 1.12 +++ openacs-4/packages/dotlrn/www/index.adp 21 Jan 2002 06:30:11 -0000 1.13 @@ -1,5 +1,6 @@ dotLRN +@portal_id@ [ Index: openacs-4/packages/dotlrn/www/master.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/master.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/dotlrn/www/master.adp 17 Dec 2001 23:02:56 -0000 1.5 +++ openacs-4/packages/dotlrn/www/master.adp 21 Jan 2002 06:30:11 -0000 1.6 @@ -1,10 +1,50 @@ @title@ +@portal_id@ -

@title@

+ + + + + + + + + + + + +
+ +
+ + dotlrn + + @text@ + + +
+ +
- - <%= [eval dotlrn::navbar $context_bar] %> - -
+

+ + +@navbar@ +

+ + +@navbar@ +

+

+

+


+
+MIT Sloan School of Management | MIT 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.3 -r1.4 --- openacs-4/packages/dotlrn/www/member-add-2.adp 20 Jan 2002 19:43:46 -0000 1.3 +++ openacs-4/packages/dotlrn/www/member-add-2.adp 21 Jan 2002 06:30:11 -0000 1.4 @@ -1,5 +1,6 @@ Add A Member To A Community +@portal_id@ You're adding @first_names@ @last_name@ (@email@):

Index: openacs-4/packages/dotlrn/www/member-add-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/member-add-2.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/member-add-2.tcl 20 Jan 2002 19:17:39 -0000 1.2 +++ openacs-4/packages/dotlrn/www/member-add-2.tcl 21 Jan 2002 06:30:11 -0000 1.3 @@ -11,7 +11,7 @@ } -properties { roles:multirow } - +set portal_id "" set community_id [dotlrn_community::get_community_id] dotlrn::require_user_admin_community $community_id 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.3 -r1.4 --- openacs-4/packages/dotlrn/www/member-add.adp 20 Jan 2002 19:43:46 -0000 1.3 +++ openacs-4/packages/dotlrn/www/member-add.adp 21 Jan 2002 06:30:11 -0000 1.4 @@ -1,6 +1,7 @@ Add A Member To A Community @context_bar@ +@portal_id@ The results of your search are:

    Index: openacs-4/packages/dotlrn/www/member-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/member-add.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/member-add.tcl 20 Jan 2002 19:17:39 -0000 1.2 +++ openacs-4/packages/dotlrn/www/member-add.tcl 21 Jan 2002 06:30:11 -0000 1.3 @@ -9,7 +9,7 @@ search_text {referer "one-community-admin"} } - +set portal_id "" set community_id [dotlrn_community::get_community_id] # Just search Index: openacs-4/packages/dotlrn/www/members.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/members.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/members.adp 20 Jan 2002 19:17:39 -0000 1.2 +++ openacs-4/packages/dotlrn/www/members.adp 21 Jan 2002 06:30:11 -0000 1.3 @@ -1,5 +1,6 @@ Manage Membership @context_bar@ +@portal_id@ Index: openacs-4/packages/dotlrn/www/members.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/members.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/members.tcl 20 Jan 2002 19:43:46 -0000 1.2 +++ openacs-4/packages/dotlrn/www/members.tcl 21 Jan 2002 06:30:11 -0000 1.3 @@ -7,6 +7,8 @@ } -query { } +set portal_id "" + set context_bar {{"one-community-admin" Admin} {Manage Members}} ad_return_template Index: openacs-4/packages/dotlrn/www/not-allowed.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/not-allowed.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/not-allowed.adp 20 Jan 2002 21:10:12 -0000 1.2 +++ openacs-4/packages/dotlrn/www/not-allowed.adp 21 Jan 2002 06:30:11 -0000 1.3 @@ -1,5 +1,6 @@ Not Allowed +

    You are not allowed to perform that action. Index: openacs-4/packages/dotlrn/www/one-community-admin.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/one-community-admin.adp,v diff -u -r1.11 -r1.12 --- openacs-4/packages/dotlrn/www/one-community-admin.adp 20 Jan 2002 17:20:45 -0000 1.11 +++ openacs-4/packages/dotlrn/www/one-community-admin.adp 21 Jan 2002 06:30:11 -0000 1.12 @@ -1,6 +1,7 @@ Admin: @pretty_name@ @context_bar@ +@portal_id@

      Index: openacs-4/packages/dotlrn/www/one-community-admin.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/one-community-admin.tcl,v diff -u -r1.11 -r1.12 --- openacs-4/packages/dotlrn/www/one-community-admin.tcl 20 Jan 2002 06:11:04 -0000 1.11 +++ openacs-4/packages/dotlrn/www/one-community-admin.tcl 21 Jan 2002 06:30:11 -0000 1.12 @@ -17,6 +17,7 @@ n_subgroups:onevalue } +set portal_id "" set community_id [dotlrn_community::get_community_id] dotlrn::require_user_admin_community $community_id Index: openacs-4/packages/dotlrn/www/one-community-not-member.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/one-community-not-member.adp,v diff -u -r1.6 -r1.7 --- openacs-4/packages/dotlrn/www/one-community-not-member.adp 19 Jan 2002 17:26:07 -0000 1.6 +++ openacs-4/packages/dotlrn/www/one-community-not-member.adp 21 Jan 2002 06:30:11 -0000 1.7 @@ -1,6 +1,8 @@ +