Index: openacs-4/packages/acs-admin/www/apm/version-callbacks.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-callbacks.adp,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-admin/www/apm/version-callbacks.adp 22 May 2003 13:59:05 -0000 1.3 +++ openacs-4/packages/acs-admin/www/apm/version-callbacks.adp 28 Aug 2003 09:41:37 -0000 1.4 @@ -28,6 +28,118 @@

- Add callback + » Add callback

+ +

Help

+ +

+ Below is the list of available callbacks and the parameters they will be called with. Note that the parameters are sent as named parameters. +

+ +

+ For install, uninstall, and upgrade, the before/after part of the + name refers to before or after the database create/upgrade/drop + scripts have been run. For mounting and instantiating, well, that should be fairly obvious. +

+ +

+ For the upgrade callbacks, you should definitely check out the apm_upgrade_logic, + which makes it very easy to handle the logic of which things to + process depending on which version you're upgrading from and to. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CallbackParameters
+ before-install + + +
+ after-install + + +
+ before-upgrade + + -from_version_name + -to_version_name +
+ after-upgrade + + -from_version_name + -to_version_name +
+ before-uninstall + + +
+ after-instantiate + + -package_id +
+ before-uninstantiate + + -package_id +
+ after-mount + + -package_id + -node_id +
+ before-unmount + + -package_id + -node_id +