• last updated 6 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
New HTML sandbox formfield based on the Monaco editor formfield

This field implement an HTML sandbox. The user can edit HTML code and see the result rendered in real time as a standalone document using an iframe. This formfield is meant for quick prototyping of HTML pages which can then be shared among other wiki users, taking also advantage of other wiki features such as versioning, access control and so on.

Whitespace cleanup

Make so that also party::update enforces emails to be lowercase, add/extend automated tests to make sure emails are lowercase everywhere

In order to make the "editor=" formfield spec option have any effect, one should catch the value from the spec early, before the formfield is reclassed and initialized

This also exposes that the editor=none value is not valid (detected by xowiki and xowf automated tests). For this to be valid one should define it as a richtext subclass.

Cloase bracket

Refine regex and extend tests

Extend 'validate_url' test case

make child_components a proc (::xowiki::formfield::child_components) and add filter expression

Extend 'acs_tcl__util_url_valid_p' test case

Make the check for relative URLs less strict to cover some valid cases (see RFC 1808) and extend test cases.

Unify URL checking, now that 'util_url_valid_p' accepts relative URLs. Extend 'validate_url' test case and bump package version for dependencies.

Add the 'relative' flag to 'util_url_valid_p', to check also relative URLs. Extend 'acs_tcl__util_url_valid_p' test case and bump package version.

    • -3
    • +3
    /openacs-4/packages/acs-tcl/acs-tcl.info
Added new method "child_components": Return for a list of form-field objs all child components

Refine URL validation regexp and extend 'acs_tcl__util_url_valid_p' test case.

Fix typo. Fixes 'files__tcl_file_common_errors' test case

factor out render_full_submission_form

    • -21
    • +51
    /openacs-4/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.

Add 'validate_currency' test case, covering 'template::data::validate' and 'template::data::validate::currency'

Break overlong lines

Whitespace changes

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.

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

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'