• last updated 16 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
improve spelling

provide a compatibility function for ns_parsehostport for earlier versions of NaviServer

make spelling more consistent

    • -6
    • +6
    ./acs-automated-testing/tcl/aa-test-procs.tcl
prefer variable resolver over method calls for unset

minor refactoring to correct old-style widgetSpecs; prefer variable resolver over method calls for unset

    • -21
    • +30
    ./xowiki/tcl/form-field-procs.tcl
support editor=none in arbitrary form-field specs

added composite question per default to the "New" pull-down menu, added message keys for German

    • -0
    • +1
    ./xowf/catalog/xowf.de_DE.ISO-8859-1.xml
    • -1
    • +1
    ./xowf/catalog/xowf.en_US.ISO-8859-1.xml
make sure that the query variable "show" is only passed non-empty, otherwise the page-contract of admin/message-list.tcl will fail

    • -9
    • +9
    ./acs-lang/www/admin/edit-localized-message.tcl
Reduce usage of ns_mktemp in OpenACS

ns_mktemp uses the deprecated old POSIX call mktemp(), which should

not be used anymore for security reasons (race between the name

creation and opening the file). This change removes several usages of

"ns_mktemp" from OpenACS and replaces it with calls to the

safe Tcl call "file tempfile ..." (introduced by Tcl 8.6).

    • -4
    • +2
    ./acs-admin/tcl/test/acs-admin-procs.tcl
    • -3
    • +2
    ./acs-tcl/tcl/utilities-procs-aolserver.tcl
    • -7
    • +4
    ./acs-templating/tcl/spellcheck-procs.tcl
prefer usage of "xo::write_tmp_file" over "xo::write_file" for writing tmp files

Reduce usage of ns_mktemp in OpenACS

ns_mktemp uses the deprecated old POSIX call mktemp(), which should

not be used anymore for security reasons (race between the name

creation and opening the file). This change removes several usages of

"ns_mktemp" from OpenACS and replaces it with calls to the

safe Tcl call "file tempfile ..." (introduced by Tcl 8.6).

added function xo::write_tmp_file

The new function uses an atomic call to create a temporary file and

is therefore lass prone to attacks.

bumped verison number to 5.10.0d41

reinstantiate accidentially deleted code

fix header generation

since the headers are set in a loop, "ns_set put" is incorrect

since it is additive. "ns_set update" is correct.

    • -1
    • +1
    ./acs-tcl/tcl/test/http-client-procs.tcl
make using page-filter "object_id" backwards compatible by allowing it to be used also during update scripts

    • -2
    • +2
    ./acs-admin/www/apm/version-reload.tcl
    • -5
    • +20
    ./acs-tcl/tcl/tcl-documentation-procs.tcl
improve spelling

improve log message

Do not urlencode the return URL in every case, but only when this falls back to the current URL from the connection context, normally coming from "ns_conn url" which will return it "raw", as in not encoded for any purpose

add comments with class names to ease navigation in the source file

URLencode the return URL, or the server might complain for invalid characters (e.g. unencoded umlaut characters)

whitespace change

Remove hard-coded styling with the "style" element to get a more consistent appearance

(many thanks to Monika Andergassen for looking into this).

Document behavior

    • -2
    • +4
    ./acs-bootstrap-installer/tcl/00-proc-procs.tcl
Whitespace cleanup

    • -7
    • +7
    ./acs-bootstrap-installer/tcl/00-proc-procs.tcl
improve query variable checking

Adapt 'ad_urlencode_url' to the new 'ns_parseurl' stricter behavior

    • -17
    • +33
    ./acs-tcl/tcl/utilities-procs.tcl
added CSS properties for adding scrollbars to overly large exam texts. Not sure, these are always wanted.

Initial support for composite questions

A composite question is a test-item containing other regular test

items. This makes it possible to define a larger test item case for

which arbitrary other questions can be associated (e.g. short text

question plus an MC and ordering question etc.). The randomization

features (shuffling, x out of N, etc.) of the included test-items are

preserved such that it is possible to present the student e.g. a sub

question where only 2 out of 5 possible alternatives are displayed.

The provided implementation builds for a composite question consisting

of a constant exam intro text and the selected sub items including

points, minutes etc. The points and minutes of the composite question

are computed as the sum of the points and minutes of the

sub-items. The actual sub-items are constructed at runtime such that

per-user randomization can be applied.

Current shortcoming: question with percent-substitutions are not

supported (since the exam intro text is placed at composite form

creation time already into the form, therefore, it is the same for all

students). Furthermore, the substitution semantics are not clear

concerning the included content.

    • -116
    • +196
    ./xowf/tcl/test-item-procs.tcl
include form-vars in log messages for workflows since this eases debugging

add checker for object_ids. In order to use this, a recent version of nsf is required, no accepting abbreviations for all types

    • -0
    • +13
    ./xotcl-core/tcl/01-debug-procs.tcl