• last updated 12 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
merge from oacs-5-10

  1. … 8099 more files in changeset.
new function: ad_unless_script_abort and bump version to 5.10.1b12

This convenience function eases handling of ad_script_abort exceptions

in cases, where the OpenACS request processor is not involved.

From the documentation:

Execute the provided body in the callers' environment. When the

body does not raise an "ad_script_abort" exception, the

"non_abort_action" is also executed. This pattern is useful when

handling client requests and where the "non_abort_action" is used

to return results to the client. When "ad_script_abort" is

executed, the connection is usually closed, and any attempt to

talk to the client over the closed connection will fail.

The handling of script_abort exceptions is done usually in the

request processor. The function is useful when registering own

request procs (e.g., via "ns_register_proc") where the OpenACS

request processor is not involved.

bumped version to 5.10.1b12

  1. … 1 more file in changeset.
update comments

Fix doc definition, add remark

Prefer 'namespace which' over 'info commands', as it is faster (on local tests, around 2x) and returns a single value. Many thanks to Nathan Coulter.

  1. … 58 more files in changeset.
reduce verbosity

Avoid potential quoting issues by enclosing body in a list statement (many thanks to Nathan Coulter)

Remove trailing whitespace

  1. … 2 more files in changeset.
make former private functions, used in several packages to public functions

  1. … 4 more files in changeset.
improve spelling

  1. … 12 more files in changeset.
Handle Tcl verisons newer than 8.6

Exception handling reform (part 1)

- implement ad_try based on (byte-compiled) Tcl try to make exception

handling more Tcl compliant

- Replace several "catch" operations in request-processor by ad_try

- de-spaghetti "rp_handler" and factor out "rp_handle_request"

- Provide error context in log message in a more uniform way

- handle ds stub-procs in a more uniform way:

provide as well a stub for "ds_init" instead of

wrapping it into a "catch" operation.

- move deprecated procs "ad_return" and "rp_handle_adp_request"

from request-processor-procs to deprecated-utilities-procs.tcl

- bump version number of acs-tcl to 5.10.0d2

  1. … 4 more files in changeset.
Make sure, the try command is available in your installation (requires Tcl 8.5 or newer)

merged changes from the oacs-5-9 branch and resolved conflicts

  1. … 7834 more files in changeset.
- new function "ad_exception" to check, if an exception was raised be OpenACS

  1. … 1 more file in changeset.
- add editor hints to keep spaces/tabs in the furture more consistent

  1. … 754 more files in changeset.
Merging back to HEAD branch oacs-5-8 (using tag vg-merge-oacs-5-8-from-20141027).

  1. … 2547 more files in changeset.
- don't use backslash in multiline expressions

- make long expressions more uniform and more readable

- use "in" or not in (ni) operator instead of lsearch

- brace expressions to allow for tcl compilation

- bump version number

  1. … 23 more files in changeset.
- use tcl 8.5 extended index format for "lindex"

- use tcl 8.5 extended index format for "lrange"

- use tcl 8.5 expand operator instead of "eval lappend ..." idiom

  1. … 7 more files in changeset.
Normalizing string comparison operations into tcl 8.4 operations, enabling byte-code compilation for expressions and many conditionals

  1. … 367 more files in changeset.
added some @see to make ad_try less threatening

OpenACS 4.x

  1. … 1321 more files in changeset.
Initial revision

    • -0
    • +53
    ./exception-procs.tcl
  1. … 1321 more files in changeset.