apm::package_version::attributes::maturity_int_to_text (public)

 apm::package_version::attributes::maturity_int_to_text maturity

Defined in packages/acs-tcl/tcl/apm-install-procs.tcl

Get the internationalized maturity description corresponding to the given integer package maturity level.

Parameters:
maturity (required)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 apm_read_package_info_file apm_read_package_info_file (public) apm::package_version::attributes::maturity_int_to_text apm::package_version::attributes::maturity_int_to_text apm_read_package_info_file->apm::package_version::attributes::maturity_int_to_text packages/acs-admin/www/install/install.tcl packages/acs-admin/ www/install/install.tcl packages/acs-admin/www/install/install.tcl->apm::package_version::attributes::maturity_int_to_text lang::util::localize lang::util::localize (public) apm::package_version::attributes::maturity_int_to_text->lang::util::localize

Testcases:
No testcase defined.
Source code:
    if { $maturity ne "" } {

        if { !($maturity >= -1 && $maturity <= 4) } {
            error "Maturity must be between -1 and 4 but is \"$maturity\""
        }

        set maturity_key(-1) "#acs-tcl.maturity_incompatible#"
        set maturity_key(0) "#acs-tcl.maturity_new_submission#"
        set maturity_key(1) "#acs-tcl.maturity_immature#"
        set maturity_key(2) "#acs-tcl.maturity_mature#"
        set maturity_key(3) "#acs-tcl.maturity_mature_and_standard#"
        set maturity_key(4) "#acs-tcl.maturity_deprecated#"

        if {[catch {
            set result [lang::util::localize $maturity_key($maturity)]
        } errorMsg]} {
            ns_log warning "Couldn't localize maturity key $maturity: $errorMsg"
            set result $maturity
        }

    } else {

        set result ""

    }

    return $result
Generic XQL file:
packages/acs-tcl/tcl/apm-install-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/apm-install-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/apm-install-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: