• last updated 17 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Improve api robustness and test it

    • -1
    • +52
    ./tcl/test/object-test-case-procs.tcl
Cache api per request

Don't append an extra empty string to the form command when we are dealing with flags (that have therefore no value)

Fixes regression from https://cvs.openacs.org/changelog/OpenACS?cs=oacs-5-10%3Aantoniop%3A20220331163354, because now we treat flags properly

Add missing message key

    • -0
    • +1
    ./catalog/acs-tcl.en_US.ISO-8859-1.xml
Export message keys from the UI to normalize sorting and quoting

    • -29
    • +21
    ./catalog/acs-tcl.en_US.ISO-8859-1.xml
Fix typo

Provide a default value for the filter

New ad_page_contract filter object_type

Rhis can enforce an object id to not only be formally correct, but also to be an object of a specific type. It can also be used as a simple existance check

Fix query name

Update documentation

Improve test

    • -0
    • +10
    ./tcl/test/tcl-documentation-procs.tcl
Collect common definition of an argspec flag in a proc to improve clarity

Introduce a new clock ad_page_contract filter:

this filter enforces that a datestring belongs to one of the clock formats specified in the argspec. By default, this will be %Y-%m-%d.

Cleanup

ad_page/include_contract argspec parsing reform: allow arbitrary characters in the argspec flag parameters

This reform allows to specify an argspec containing pipes, parenthesys and other so far forbidden characters as parameters for a flag. The purpose is to enhance the expressiveness of existing validators (e.g. the oneof validator) and enable new one, for instance, a date validator using a clock format as parameter.

Pipes and parenthesys need to be escaped via the backslash character in the new syntax.

    • -11
    • +93
    ./tcl/tcl-documentation-procs.tcl
    • -0
    • +112
    ./tcl/test/tcl-documentation-procs.tcl
file tcl-documentation-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./tcl/test/tcl-documentation-procs.tcl
Fix array format in message keys

See acs-lang.message__format automated test, where the expected behavior of lang::message::format is documented

    • -4
    • +4
    ./catalog/acs-tcl.de_DE.ISO-8859-1.xml
    • -4
    • +4
    ./catalog/acs-tcl.en_US.ISO-8859-1.xml
    • -4
    • +4
    ./catalog/acs-tcl.es_ES.ISO-8859-1.xml
    • -4
    • +4
    ./catalog/acs-tcl.gl_ES.ISO-8859-1.xml
    • -4
    • +4
    ./catalog/acs-tcl.it_IT.ISO-8859-1.xml
    • -4
    • +4
    ./catalog/acs-tcl.nl_NL.ISO-8859-1.xml
    • -4
    • +4
    ./catalog/acs-tcl.nl_ZA.ISO-8859-1.xml
    • -4
    • +4
    ./catalog/acs-tcl.pt_BR.ISO-8859-1.xml
provide compatibility with tdom 0.9.3

Add @see to deprecated procs

Add @see to deprecated procs

Add @see to deprecated procs

Add @see to deprecated procs

Deprecate ad_apply, made obsolete in modern Tcl by the expansion operator "{*}"

  1. … 4 more files in changeset.
Handle upcoming tDOM 0.9.3

This might need some further rethinking

provided a default value for udp:// requests

added ADP:ICON to the list of accepted tags (for new instances)

  1. … 1 more file in changeset.
Make api public

security::cookie_name: since this is used in acs-lang, it has to be public

Added dynamic cluster configuration checking

- handle cases, where not all cluster nodes are available at startup

time (this is a problem for docker, since the IP addresses will not

be available as well)

- handle dynamic changing of configuration variables

- refactored code

- new methods "acs::Cluster register_nodes" and

"acs::Cluster refresh_blueprint" (called regulary via scheduled

procedure, running every minute)

file cluster-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./tcl/cluster-procs.tcl