xo::db::CrItem instproc is_package_root_folder (public)

 <instance of xo::db::CrItem[i]> is_package_root_folder

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

# In general, every cr_item may be in the role of a # "root-folder" of a package.

Testcases:
create_folder_with_page, create_workflow_with_instance
Source code:
# e.g. the -100 folder has no package_id
# if {$package_id eq ""} {return false}
if {![info exists :item_id]} {
  return false
}
#::xo::Package require ${:package_id}
return [expr {${:item_id} eq [::${:package_id} folder_id]} ? true : false]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: