install::xml::action::load-categories (public)

 install::xml::action::load-categories node

Defined in packages/categories/tcl/install-procs.tcl

Load categories from a file.

Parameters:
node (required)

Partial Call Graph (max 5 caller/called nodes):
%3 acs_root_dir acs_root_dir (public) apm_attribute_value apm_attribute_value (public) apm_required_attribute_value apm_required_attribute_value (public) category_tree::xml::import_from_file category_tree::xml::import_from_file (public) install::xml::action::load-categories install::xml::action::load-categories install::xml::action::load-categories->acs_root_dir install::xml::action::load-categories->apm_attribute_value install::xml::action::load-categories->apm_required_attribute_value install::xml::action::load-categories->category_tree::xml::import_from_file

Testcases:
No testcase defined.
Source code:
    set src [apm_required_attribute_value $node src]
    set site_wide_p [apm_attribute_value -default 0 $node site-wide-p]
    set format [apm_attribute_value -default "simple" $node format]
    set id [apm_attribute_value -default "" $node id]

    switch -exact $format {
        simple {
            set tree_id [category_tree::xml::import_from_file  -site_wide=[string is true -strict $site_wide_p]  [acs_root_dir]$src]
        }
        default {
            error "Unsupported format."
        }
    }

    if {$id ne "" } {
        set ::install::xml::ids($id$tree_id
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: