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.6 -r1.7
--- openacs-4/packages/dotlrn/tcl/community-procs.xql 7 Nov 2001 20:20:56 -0000 1.6
+++ openacs-4/packages/dotlrn/tcl/community-procs.xql 7 Nov 2001 22:22:09 -0000 1.7
@@ -35,40 +35,25 @@
-select rel_id, users.user_id, first_names, last_name, email from registered_users users, dotlrn_member_rels_full where community_id= :community_id and users.user_id = dotlrn_member_rels_full.user_id
+select rel_id, rel_type, users.user_id, first_names, last_name, email from registered_users users, dotlrn_member_rels_full where community_id= :community_id and users.user_id = dotlrn_member_rels_full.user_id order by rel_type
-select count(*) from dotlrn_community_memberships where community_id= :community_id and user_id= :user_id
+select count(*) from dotlrn_member_rels_full where community_id= :community_id and user_id= :user_id
-
-
-insert into dotlrn_community_memberships
-(rel_id, community_id, user_id, page_id)
-values
-(:rel_id, :community_id, :user_id, :page_id)
-
-
-
-select rel_id, page_id from dotlrn_community_memberships where community_id= :community_id and user_id= :user_id
+select rel_id, page_id from dotlrn_member_rels_full where community_id= :community_id and user_id= :user_id
-
-
-delete from dotlrn_community_memberships where rel_id=:rel_id
-
-
-
-select page_id from dotlrn_community_memberships where community_id= :community_id and user_id= :user_id
+select page_id from dotlrn_member_rels_full where community_id= :community_id and user_id= :user_id
@@ -87,10 +72,10 @@
select dotlrn_communities.community_id as community_id, community_type, pretty_name, description, package_id
-from dotlrn_communities, dotlrn_community_memberships
+from dotlrn_communities, dotlrn_member_rels_full
where community_type= :community_type
and user_id= :user_id
-and dotlrn_communities.community_id = dotlrn_community_memberships.community_id
+and dotlrn_communities.community_id = dotlrn_member_rels_full.community_id