xowiki::Package proc get_package_id_from_page_id (public)
xowiki::Package get_package_id_from_page_id \ [ -revision_id revision_id ] [ -item_id item_id ]
Defined in /var/www/openacs.org/packages/xowiki/tcl/package-procs.tcl
Obtain the package_id from either the item_id or the revision_id of a page
- Switches:
- -revision_id (optional, defaults to
"0"
)- -item_id (optional, defaults to
"0"
)- Testcases:
- create_workflow_with_instance
Source code: if {$revision_id} { set object_id $revision_id } elseif {$item_id} { set object_id $item_id } else { error "Either item_id or revision_id must be provided" } return [::xo::dc get_value get_pid {select package_id from acs_objects where object_id = :object_id}]XQL Not present: Generic, PostgreSQL, Oracle