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.73 -r1.74
--- openacs-4/packages/dotlrn/tcl/community-procs.xql 12 Jul 2002 21:26:48 -0000 1.73
+++ openacs-4/packages/dotlrn/tcl/community-procs.xql 13 Jul 2002 00:13:09 -0000 1.74
@@ -390,10 +390,12 @@
-
- delete from dotlrn_community_applets
- where community_id= :community_id and applet_id = :applet_id
-
+
+ delete
+ from dotlrn_community_applets
+ where community_id = :community_id
+ and applet_id = :applet_id
+
@@ -453,7 +455,8 @@
- delete from dotlrn_community_applets
+ delete
+ from dotlrn_community_applets
where community_id = :community_id
and applet_id = :applet_id
@@ -473,44 +476,44 @@
- select applet_key
- from dotlrn_community_applets dca,
- dotlrn_applets da
- where community_id = :community_id
- and dca.applet_id = da.applet_id
+ select dotlrn_applets.applet_key
+ from dotlrn_community_applets
+ dotlrn_applets
+ where dotlrn_community_applets.community_id = :community_id
+ and dotlrn_community_applets.applet_id = dotlrn_applets.applet_id
select applet_key
from dotlrn_applets
- where status = 'active'
+ where active_p = 't'
- 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 dotlrn_applets.applet_key
+ from dotlrn_community_applets,
+ dotlrn_applets
+ where dotlrn_community_applets.community_id = :community_id
+ and dotlrn_community_applets.active_p = 't'
+ and dotlrn_community_applets.applet_id = dotlrn_applets.applet_id
+ and dotlrn_applets.active_p = 't'
select 1
- from dotlrn_community_applets dca,
- dotlrn_applets da
- where community_id = :community_id
- and da.applet_key = :applet_key
- and active_p = 't'
- and dca.applet_id = da.applet_id
- and status = 'active'
+ from dotlrn_community_applets,
+ dotlrn_applets
+ where dotlrn_community_applets.community_id = :community_id
+ and dotlrn_community_applets.applet_id = dotlrn_applets.applet_id
+ and dotlrn_applets.applet_key = :applet_key
+ and dotlrn_community_applets.active_p = 't'
+ and dotlrn_applets.active_p = 't'