• last updated 14 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
file throttle_mod-test-procs.tcl was initially added on branch oacs-5-10.

- provide a better fix for name disambiguation between folders and same named (language prefixed) pages

- extend regression test

    • -15
    • +60
    /openacs-4/packages/xowiki/tcl/package-procs.tcl
    • -7
    • +7
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
reduce verbosity

don't use non-existing method name in test specification.

This fixes a bug on openacs.org in source search of API browser.

TODO: the procs specified in the test definition (aa_register_case)

should be checked for existence.

add test case to show nameclash-behavior between folder and item

fix regression test when system locale is en_US

fix regression test cases. Works correct now with system locale en_US

    • -35
    • +28
    /openacs-4/packages/xowiki/www/admin/test.tcl
Prettify data size using 'util::content_size_pretty'

Trailing whitespace cleanup

Prettify data size using 'util::content_size_pretty'

let test run without runtime errors

    • -10
    • +12
    /openacs-4/packages/xowiki/www/admin/test.tcl
Whitespace changes

Prettify data size using 'util::content_size_pretty'

  1. … 19 more files in changeset.
Improve content_type detection on forum attachments, and avoid redirecting to external hosts on URLs

Url attachments in forums: use URL icon and avoid showing the size

Fix es_* message key

Preserve old logic on total size increment

Show attachment size in forum messages

Whitespace changes

Use 'util::content_size_pretty' instead of manually prettifying data sizes

Use 'util::content_size_pretty' instead of manually prettifying data sizes

Add new proc 'util::content_size_pretty', to prettify data size given in bytes, and its automated tests.

It supports both binary and decimal representations, a resolution up to YB/YiB, and setting the precision via parameter.

It should replace ad-hoc size prettyfication done manually in several places of the codebase.

Fix workflow_constructs automated test: in this case, workflow context is not resolved and "::" is returned instead, which is not a command and would make this proc fail

    • -5
    • +8
    /openacs-4/packages/xowf/tcl/xowf-procs.tcl
Keep the eventual language prefix in the name, as it is useful to distinguish e.g. pages from folders with the same name

    • -2
    • +2
    /openacs-4/packages/xowiki/tcl/package-procs.tcl
don't catch all render_icon calls

    • -1
    • +3
    /openacs-4/packages/xowf/tcl/xowf-procs.tcl
- added support for render_icon method

- improved error messages

    • -4
    • +36
    /openacs-4/packages/xowf/tcl/xowf-procs.tcl
improve spelling

added an addtional interaction type for uploading files upload_interaction

the basic interaction types are now:

- text_interaction

- upload_interaction

- mc_interaction (supporting as well single choice)

new includelet: link-with-local-return-url: insert a link with extra return URL pointing the current object.

improve robustness in view-mode