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.55 -r1.56 --- openacs-4/packages/dotlrn/tcl/community-procs.xql 2 May 2002 19:14:29 -0000 1.55 +++ openacs-4/packages/dotlrn/tcl/community-procs.xql 6 May 2002 23:55:02 -0000 1.56 @@ -20,9 +20,11 @@ - + - update dotlrn_community_types set portal_template_id= :template_id where community_type= :community_type + update dotlrn_community_types + set portal_id = :portal_id + where community_type = :community_type @@ -79,9 +81,9 @@ update dotlrn_communities - set portal_template_id = :portal_template_id, - portal_id = :portal_id, - admin_portal_id= :admin_portal_id + set portal_id = :portal_id, + non_member_portal_id = :non_member_portal_id, + admin_portal_id = :admin_portal_id where community_id = :community_id @@ -206,39 +208,13 @@ - select rel_id, - portal_id + select rel_id from dotlrn_member_rels_full where community_id = :community_id - and user_id= :user_id - - - - - - select portal_id - from dotlrn_member_rels_full - where community_id = :community_id and user_id = :user_id - - - select portal_id - from dotlrn_communities - where community_id = :community_id - - - - - - select admin_portal_id - from dotlrn_communities - where community_id = :community_id - - - select dotlrn_communities_full.* @@ -414,14 +390,30 @@ - + - select portal_template_id + select portal_id from dotlrn_communities where community_id = :community_id + + + select non_member_portal_id + from dotlrn_communities + where community_id = :community_id + + + + + + select admin_portal_id + from dotlrn_communities + where community_id = :community_id + + + insert into dotlrn_community_applets