photo-album-install-procs.tcl

Photo Album install callbacks

Location:
packages/photo-album/tcl/photo-album-install-procs.tcl
Created:
2004-05-20
Author:
Jeff Davis davis@xarg.net
CVS Identification:
$Id: photo-album-install-procs.tcl,v 1.1 2004/06/01 19:13:05 jeffd Exp $

Procedures in this file

Detailed information

photo_album::install::package_install (private)

 photo_album::install::package_install

package install callback

Partial Call Graph (max 5 caller/called nodes):
%3 photo_album::search::album::register_fts_impl photo_album::search::album::register_fts_impl (private) photo_album::search::photo::register_fts_impl photo_album::search::photo::register_fts_impl (private) photo_album::install::package_install photo_album::install::package_install photo_album::install::package_install->photo_album::search::album::register_fts_impl photo_album::install::package_install->photo_album::search::photo::register_fts_impl

Testcases:
No testcase defined.

photo_album::install::package_uninstall (private)

 photo_album::install::package_uninstall

package uninstall callback

Partial Call Graph (max 5 caller/called nodes):
%3 photo_album::search::unregister_implementations photo_album::search::unregister_implementations (private) photo_album::install::package_uninstall photo_album::install::package_uninstall photo_album::install::package_uninstall->photo_album::search::unregister_implementations

Testcases:
No testcase defined.

photo_album::install::package_upgrade (private)

 photo_album::install::package_upgrade \
    -from_version_name from_version_name \
    -to_version_name to_version_name

Package before-upgrade callback

Switches:
-from_version_name (required)
-to_version_name (required)

Partial Call Graph (max 5 caller/called nodes):
%3 apm_upgrade_logic apm_upgrade_logic (public) photo_album::search::album::register_fts_impl photo_album::search::album::register_fts_impl (private) photo_album::search::photo::register_fts_impl photo_album::search::photo::register_fts_impl (private) photo_album::install::package_upgrade photo_album::install::package_upgrade photo_album::install::package_upgrade->apm_upgrade_logic photo_album::install::package_upgrade->photo_album::search::album::register_fts_impl photo_album::install::package_upgrade->photo_album::search::photo::register_fts_impl

Testcases:
No testcase defined.
[ hide source ] | [ make this the default ]

Content File Source

ad_library {
    Photo Album install callbacks

    @creation-date 2004-05-20

    @author Jeff Davis davis@xarg.net
    @cvs-id $Id: photo-album-install-procs.tcl,v 1.1 2004/06/01 19:13:05 jeffd Exp $
}

namespace eval photo_album::install {}

ad_proc -private photo_album::install::package_install {} { 
    package install callback
} {
    photo_album::search::album::register_fts_impl
    photo_album::search::photo::register_fts_impl
}

ad_proc -private photo_album::install::package_uninstall {} { 
    package uninstall callback
} {
    photo_album::search::unregister_implementations
}

d_proc -private photo_album::install::package_upgrade {
    {-from_version_name:required}
    {-to_version_name:required}
} {
    Package before-upgrade callback
} {
    apm_upgrade_logic \
        -from_version_name $from_version_name \
        -to_version_name $to_version_name \
        -spec {
            5.2.2d1 5.2.2d2 {
                # just need to install the search callback
                photo_album::search::album::register_fts_impl
                photo_album::search::photo::register_fts_impl
            }
        }
}