• last updated 4 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix typo. Fixes 'files__tcl_file_common_errors' test case

    • -1
    • +1
    ./packages/xowf/tcl/test-item-procs.tcl
factor out render_full_submission_form

    • -21
    • +51
    ./packages/xowf/tcl/test-item-procs.tcl
Add 'get_url_directory' test case, covering 'template::util::get_url_directory'

Add 'nvl' test case, covering 'template::util::nvl'

Add 'number_list' test case, covering 'template::util::number_list'

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

    • -0
    • +0
    ./packages/acs-templating/tcl/test/util-procs.tcl
Add 'validate_currency' test case, covering 'template::data::validate' and 'template::data::validate::currency'

Break overlong lines

    • -41
    • +111
    ./packages/acs-templating/tcl/test/data-procs.tcl
Whitespace changes

    • -254
    • +254
    ./packages/acs-templating/tcl/data-procs.tcl
Add 'validate_oneof' test case, covering 'template::data::validate' and 'template::data::validate::oneof'

Fix clock check. The clock command will not fail on incorrect dates (e.g. 2021-13-00) unless the format is specified.

    • -2
    • +2
    ./packages/acs-templating/tcl/data-procs.tcl
Add 'validate_textdate' test case, covering 'template::data::validate' and 'template::data::validate::textdate'

Add 'validate_enumeration' test case, covering 'template::data::validate' and 'template::data::validate::checkbox_enumeration'

Extend 'validate_text' test case and reduce code duplication

    • -50
    • +12
    ./packages/acs-templating/tcl/test/data-procs.tcl
Extend 'validate_search' test case with 'template::data::validate::party_search'

Add 'validate_checkbox_text' test case, covering 'template::data::validate' and 'template::data::validate::checkbox_text'

Add 'validate_file' test case, covering 'template::data::validate' and 'template::data::validate::file'

Add 'validate_search' test case, covering 'template::data::validate' and 'template::data::validate::search'

added test case for form field validation

    • -38
    • +55
    ./packages/xowiki/tcl/test/test-procs.tcl
    • -0
    • +128
    ./packages/xowiki/tcl/test/xowiki-test-procs.tcl
improve spelling

    • -2
    • +2
    ./packages/xowiki/tcl/xowiki-utility-procs.tcl
make comments more uniform

    • -3
    • +3
    ./packages/xowiki/tcl/includelet-procs.tcl
provide a less confusing name for new methodm improve comments

    • -9
    • +9
    ./packages/xowiki/tcl/form-field-procs.tcl
    • -3
    • +5
    ./packages/xowiki/tcl/xowiki-www-procs.tcl
Fix typo in comment

    • -5
    • +4
    ./packages/xowiki/tcl/form-field-procs.tcl
Implement reset_to_default method to reset formfields in case of validation error

the current behavior of this method is currently a no-op for every formfield, except files, where we want to make sure the value has been reset. We also handle the case now of compound fields, as they might be compounds of file formfields

    • -1
    • +29
    ./packages/xowiki/tcl/form-field-procs.tcl
    • -10
    • +5
    ./packages/xowiki/tcl/xowiki-www-procs.tcl
Extend 'validate_date' with 'template::data::validate::time_of_day'

Add 'util_negative' test case, covering 'template::util::negative'

Add 'validate_date' test case, covering 'template::data::validate', 'template::data::validate::date' and 'template::data::validate::timestamp'

Add 'validate_url_element' test case, covering 'template::data::validate' and 'template::data::validate::url_element'

Add 'validate_url' test case, covering 'template::data::validate' and 'template::data::validate::url'

Add 'validate_filename' test case, covering 'template::data::validate' and 'template::data::validate::filename'