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):
- 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 $resultGeneric 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