template::apm::after_upgrade (private)

 template::apm::after_upgrade -from_version_name from_version_name \
    -to_version_name to_version_name

Defined in packages/acs-templating/tcl/apm-callback-procs.tcl

after upgrade apm callback for acs-templating.

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

Partial Call Graph (max 5 caller/called nodes):
%3 apm_package_id_from_key apm_package_id_from_key (public) apm_upgrade_logic apm_upgrade_logic (public) db_transaction db_transaction (public) site_node::get_from_url site_node::get_from_url (public) site_node::mount site_node::mount (public) template::apm::after_upgrade template::apm::after_upgrade template::apm::after_upgrade->apm_package_id_from_key template::apm::after_upgrade->apm_upgrade_logic template::apm::after_upgrade->db_transaction template::apm::after_upgrade->site_node::get_from_url template::apm::after_upgrade->site_node::mount

Testcases:
No testcase defined.
Source code:
    apm_upgrade_logic  -from_version_name $from_version_name  -to_version_name $to_version_name  -spec {
            5.3.0d1 5.3.0d2 {
                db_transaction {
                    # mount acs-templating so we can address
                    # executable Tcl scripts under www with a URL
                    set package_id [apm_package_id_from_key acs-templating]
                    array set main_subsite  [site_node::get_from_url  -url "/"  -exact]
                    
                    set node_id [site_node::new  -parent_id $main_subsite(node_id)  -name acs-templating]
                    site_node::mount -node_id $node_id -object_id $package_id
                    # acs-templating needs to inherit permissions from
                    # the main subsite so users can actually read the
                    # files under it
#                    acs_object::set_context_id  -object_id $package_id  -context_id $main_subsite(object_id)
                }
            }
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: