• Publicity: Public Only All

bootstrap-doc-procs.tcl

Documentation for procedures defined before the OpenACS documentation API. Register these entries during acs-tcl loading, after ad_proc and the database-specific bootstrap checks have been defined. Documentation-only declarations preserve the original implementations and caller scope.

Location:
packages/acs-tcl/tcl/bootstrap-doc-procs.tcl

Procedures in this file

Detailed information

acs_bootstrap_fatal_error (private)

 acs_bootstrap_fatal_error message [ throw_error_p ]

Record and log a fatal bootstrap error and install filters that display a service-unavailable response in place of the request processor.

Parameters:
message (required)
Error message to record.
throw_error_p (optional, defaults to "1")
Whether to raise a bootstrap_fatal_error Tcl error after installing the failure filters.

Partial Call Graph (max 5 caller/called nodes):
packages/acs-bootstrap-installer/bootstrap.tcl packages/acs-bootstrap-installer/ bootstrap.tcl acs_bootstrap_fatal_error acs_bootstrap_fatal_error packages/acs-bootstrap-installer/bootstrap.tcl->acs_bootstrap_fatal_error

Testcases:
No testcase defined.

ad_parse_documentation_string (private)

 ad_parse_documentation_string doc_string elements_var

Parse an OpenACS documentation string into an array in the caller's scope. Replace any existing array and collect the main text and tagged elements as lists of values, preserving formatting within each element.

Parameters:
doc_string (required)
Documentation text to parse.
elements_var (required)
Name of the caller's array to populate.

Partial Call Graph (max 5 caller/called nodes):
ad_library ad_library (public) ad_parse_documentation_string ad_parse_documentation_string ad_library->ad_parse_documentation_string ad_page_contract ad_page_contract (public) ad_page_contract->ad_parse_documentation_string ad_proc ad_proc (public) ad_proc->ad_parse_documentation_string xo::PackageMgr instproc initialize xo::PackageMgr instproc initialize (public) xo::PackageMgr instproc initialize->ad_parse_documentation_string xo::api proc update_object_doc xo::api proc update_object_doc (public) xo::api proc update_object_doc->ad_parse_documentation_string

Testcases:
No testcase defined.

apm_bootstrap_load_queries (private)

 apm_bootstrap_load_queries package_key

Load a package's query files for the configured database during bootstrap, including query files shared by all database types. Does not require package metadata to be available in the database.

Parameters:
package_key (required)
Package whose query files should be loaded.

Partial Call Graph (max 5 caller/called nodes):
packages/acs-bootstrap-installer/bootstrap.tcl packages/acs-bootstrap-installer/ bootstrap.tcl apm_bootstrap_load_queries apm_bootstrap_load_queries packages/acs-bootstrap-installer/bootstrap.tcl->apm_bootstrap_load_queries ad_find_all_files ad_find_all_files (public) apm_bootstrap_load_queries->ad_find_all_files apm_guess_db_type apm_guess_db_type (public) apm_bootstrap_load_queries->apm_guess_db_type apm_guess_file_type apm_guess_file_type (public) apm_bootstrap_load_queries->apm_guess_file_type db_qd_load_query_file db_qd_load_query_file (public) apm_bootstrap_load_queries->db_qd_load_query_file

Testcases:
No testcase defined.

db_bootstrap_checks (private)

 db_bootstrap_checks errors error_p

Perform bootstrap checks for the configured database implementation. Update the caller's error text and error flag as needed.

Parameters:
errors (required)
Name of the caller's variable for diagnostic messages.
error_p (required)
Name of the caller's variable indicating an error.

Partial Call Graph (max 5 caller/called nodes):
packages/acs-bootstrap-installer/bootstrap.tcl packages/acs-bootstrap-installer/ bootstrap.tcl db_bootstrap_checks db_bootstrap_checks packages/acs-bootstrap-installer/bootstrap.tcl->db_bootstrap_checks db_available_pools db_available_pools (public) db_bootstrap_checks->db_available_pools

Testcases:
No testcase defined.
[ hide source ] | [ make this the default ]

Content File Source

ad_library {
    Documentation for procedures defined before the OpenACS documentation API.

    Register these entries during acs-tcl loading, after ad_proc and the
    database-specific bootstrap checks have been defined. Documentation-only
    declarations preserve the original implementations and caller scope.
}

ad_proc -private acs_bootstrap_fatal_error {message {throw_error_p 1}} {
    Record and log a fatal bootstrap error and install filters that display
    a service-unavailable response in place of the request processor.
    @param message Error message to record.
    @param throw_error_p Whether to raise a bootstrap_fatal_error Tcl error
    after installing the failure filters.
} -

ad_proc -private apm_bootstrap_load_queries {package_key} {
    Load a package's query files for the configured database during bootstrap,
    including query files shared by all database types. Does not require
    package metadata to be available in the database.
    @param package_key Package whose query files should be loaded.
} -

ad_proc -private ad_parse_documentation_string {doc_string elements_var} {
    Parse an OpenACS documentation string into an array in the caller's scope.
    Replace any existing array and collect the main text and tagged elements
    as lists of values, preserving formatting within each element.
    @param doc_string Documentation text to parse.
    @param elements_var Name of the caller's array to populate.
} -

# Database checks may be unavailable when bootstrap stops before DB selection.
if {[namespace which -command ::db_bootstrap_checks] ne ""} {
    ad_proc -private db_bootstrap_checks {errors error_p} {
        Perform bootstrap checks for the configured database implementation.
        Update the caller's error text and error flag as needed.
        @param errors Name of the caller's variable for diagnostic messages.
        @param error_p Name of the caller's variable indicating an error.
    } -
}