xo::PackageMgr proc get_package_class_from_package_key (public)

 xo::PackageMgr[i] get_package_class_from_package_key package_key

Defined in /var/www/openacs.org/packages/xotcl-core/tcl/06-package-procs.tcl

Obtain the package class from a package key

Parameters:
package_key (required)

Testcases:
package_normalize_path, xowiki_test_cases, link_tests, path_resolve, create_form_with_form_instance
Source code:
return [acs::per_thread_cache eval -key xotcl-core.get_package_class_from_package_key($package_key) {
  set result ""
  foreach p [::xo::PackageMgr allinstances] {
    if {[$p package_key] eq $package_key} {
      set result $p
      break
    }
  }
  set result
}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: