xo::PackageMgr instproc first_instance (public)
<instance of xo::PackageMgr> first_instance \ [ -privilege privilege ] [ -party_id party_id ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/06-package-procs.tcl
Returns the first mounted instance of this Package. When a privilege and a party are specified, will return the first instance where the party has such privilege.
- Switches:
- -privilege (optional)
- -party_id (optional)
- the party we are checking the privilege for
- Returns:
- integer package_id, empty string when none is found
- Testcases:
- xowiki_test_cases, create_form_with_form_instance