xowiki::Package instproc import (public)
<instance of xowiki::Package> import [ -user_id user_id ] \ [ -parent_id parent_id ] [ -replace replace ] [ -objects objects ] \ [ -create_user_ids create_user_ids ]
Defined in /var/www/openacs.org/packages/xowiki/tcl/package-procs.tcl
import the specified pages into the xowiki instance
- Switches:
- -user_id (optional)
- -parent_id (optional, defaults to
"0"
)- -replace (optional, defaults to
"0"
)- -objects (optional)
- -create_user_ids (optional, defaults to
"0"
)- Testcases:
- No testcase defined.
Source code: if {$parent_id == 0} {set parent_id ${:folder_id}} if {![info exists user_id]} {set user_id [::xo::cc user_id]} if {![info exists objects]} {set objects [::xowiki::Page allinstances]} set msg "#xowiki.processing_objects#: $objects<p>" set importer [Importer new -package_id ${:id} -parent_id $parent_id -user_id $user_id] $importer import_all -replace $replace -objects $objects -create_user_ids $create_user_ids append msg [$importer report]XQL Not present: Generic, PostgreSQL, Oracle