xo::PackageMgr instproc initialize (public)
<instance of xo::PackageMgr> initialize [ -ad_doc ad_doc ] \ [ -parameter parameter ] [ -package_id package_id ] [ -url url ] \ [ -user_id user_id ] [ -actual_query actual_query ] \ [ -original_url_and_query original_url_and_query ] \ [ -init_url init_url ] [ -keep_cc keep_cc ] \ [ -form_parameter form_parameter ] [ -export_vars export_vars ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/06-package-procs.tcl
Create the connection context ::xo::cc and a package object if these are none defined yet. The connection context ::xo::cc and the package object will be destroyed on cleanup, when the global variables are reclaimed. As a side effect this method sets in the calling context the query parameters and package_id as variables, using the "defaults" for default values. init_url false requires the package_id to be specified and a call to Package instproc set_url to complete initialization. keep_cc true means that the original connection context is preserved (i.e. not altered) in case it exists already.
- Switches:
- -ad_doc (optional)
- -parameter (optional)
- -package_id (optional, defaults to
"0"
)- -url (optional)
- -user_id (optional, defaults to
"-1"
)- -actual_query (optional, defaults to
" "
)- -original_url_and_query (optional)
- -init_url (optional, defaults to
"true"
)- -keep_cc (optional, defaults to
"false"
)- -form_parameter (optional)
- -export_vars (optional, defaults to
"true"
)- Testcases:
- package_normalize_path, includelet_toc, includelet_childresources, xowiki_test_cases, link_tests, slot_interactions, path_resolve, create_form_with_form_instance