Index: openacs-4/packages/acs-tcl/tcl/apm-procs.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/apm-procs.xql,v
diff -u -r1.9 -r1.10
--- openacs-4/packages/acs-tcl/tcl/apm-procs.xql 21 Jan 2003 11:46:43 -0000 1.9
+++ openacs-4/packages/acs-tcl/tcl/apm-procs.xql 23 Jan 2003 17:55:24 -0000 1.10
@@ -146,6 +146,14 @@
where package_id = :package_id
+
+
+
+ select version_id
+ from apm_enabled_package_versions
+ where package_key = :package_key
+
+
@@ -172,5 +180,32 @@
and a.package_id = :package_id
-
+
+
+
+ select proc
+ from apm_package_callbacks
+ where version_id = :version_id
+ and type = :type
+
+
+
+
+
+ insert into apm_package_callbacks
+ (version_id, type, proc)
+ values (:version_id, :type, :proc)
+
+
+
+
+
+ delete from apm_package_callbacks
+ where version_id = (select version_id
+ from apm_enabled_package_versions
+ where package_key = :package_key)
+ and type = :type
+
+
+