xo::PackageMgr instproc require_site_wide_pages (public)

 <instance of xo::PackageMgr[i]> require_site_wide_pages \
    [ -refetch on|off ] [ -refetch_if_modified on|off ] \
    [ -pages pages ]

Defined in packages/xotcl-core/tcl/06-package-procs.tcl

Load site-wide pages from the prototype page directory. The pages are loaded into to site-wide instance. When a page to be loaded exists already, a new revision is added. If no pages are provided, use the list of pages as defined for the package.

Switches:
-refetch
(boolean) (defaults to "false") (optional)
force fresh loading of prototype pages
-refetch_if_modified
(boolean) (defaults to "false") (optional)
refetch when modification date of file is new than the version in the content repository
-pages
(optional)
list of pages (without languages prefix) or empty to refer to per-package definition.

Partial Call Graph (max 5 caller/called nodes):
%3 test_xowiki_test_cases xowiki_test_cases (test xowiki) xo::PackageMgr instproc require_site_wide_pages xo::PackageMgr instproc require_site_wide_pages test_xowiki_test_cases->xo::PackageMgr instproc require_site_wide_pages ad_file ad_file (public) xo::PackageMgr instproc require_site_wide_pages->ad_file xo::db::tcl_date xo::db::tcl_date (public) xo::PackageMgr instproc require_site_wide_pages->xo::db::tcl_date

Testcases:
xowiki_test_cases
[ show source ]
Show another procedure: