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.18 -r1.19 --- openacs-4/packages/dotlrn/tcl/community-procs.xql 17 Dec 2001 23:02:56 -0000 1.18 +++ openacs-4/packages/dotlrn/tcl/community-procs.xql 10 Jan 2002 00:11:38 -0000 1.19 @@ -147,7 +147,11 @@ -select package_id from dotlrn_community_applets where community_id= :community_id and applet_key= :applet_key +select package_id +from dotlrn_community_applets dca, dotlrn_applets da +where community_id= :community_id +and applet_key= :applet_key +and dca.applet_id = da.applet_id @@ -169,13 +173,28 @@ + + +select applet_id from dotlrn_applets where applet_key = :applet_key + + - + + +insert into dotlrn_applets +(applet_id, applet_key, status) +values +(:applet_id, :applet_key, :status) + + + + + insert into dotlrn_community_applets -(community_id, applet_key, package_id) +(community_id, applet_id, package_id, active_p) values -(:community_id, :applet_key, :package_id) +(:community_id, :applet_id, :package_id, :active_p) @@ -198,10 +217,32 @@ -select applet_key from dotlrn_community_applets where community_id= :community_id +select applet_key +from dotlrn_community_applets dca, dotlrn_applets da +where community_id= :community_id +and dca.applet_id = da.applet_id + + +select applet_key from dotlrn_applets where status = 'active' + + + + + +select applet_key +from dotlrn_community_applets dca, dotlrn_applets da +where community_id= :community_id +and active_p = 't' +and dca.applet_id = da.applet_id +and status = 'active' + + + + + select count(*)