xowiki::Page instproc www-toggle-publish-status (public)
<instance of xowiki::Page> www-toggle-publish-status \ [ -return_url return_url ]
Defined in /var/www/openacs.org/packages/xowiki/tcl/xowiki-www-procs.tcl
This web-callable method toggles from "production" to "ready", and from "ready" or "archived" to "production". The return_url can be passed in for cases, where some proc calls internally this function, since update_publish_status might have to initialize some related objects, which might modify the return_url as well (e.g., workflows with specialized return_url handling).
- Switches:
- -return_url (optional)
- Testcases:
- No testcase defined.
Source code: if {![info exists return_url]} { set return_url [:query_parameter return_url:localurl [ad_return_url]] } if {${:publish_status} ne "ready"} { set new_publish_status "ready" } else { set new_publish_status "production" } :update_publish_status $new_publish_status ${:package_id} returnredirect $return_urlXQL Not present: Generic, PostgreSQL, Oracle