• last updated 1 hour ago
Constraints: committers
Constraints: files
Constraints: dates
extended form-fields autocorrection handling

- added functionality of per-form-field statistics

- added support for "radio"/single choice test items

- added support for richtext handling in "radio"

- added a (limited) method to set a form-field to a correct value, based on "correct_when".

So far, just a minimal set of predicated is handled

- improved "unknown" handling, when the code does not know, whether item is correct or not

- refactored some code

- improved source code documentation

Check for answer being not-empty instead of being true

- use is_disabled on more places instead of just checking for the instance variable

reduce verbosity

added flag "-lookup" to Page.create_form_fields_from_form_constraints to avoid optioanlly recreation of form-fields

move also hstore examples to xowiki

  1. … 1 more file in changeset.
relocate update_hstore from xowf to xowiki::hstore, where the other hstore helpers exist

  1. … 1 more file in changeset.
improve logging message to ease debugging in case of errors

Do not use web api to create the folder in this non-web test

make method "is_disabled" more robust (accepting truth values in different formats)

correct links to multiple form pages (when provided)

- Address issue #3374: improve "make_link", when a page is

passed in as an object, and NO "link" is provided.

Previously, the current url was used as a base_link, now "pretty_link"

of the object is used. This is particularly necessary, when folders

are used.

NOTICE: this is a potential incompatibility (found however no case in xowiki/xowf)

where the old behavior was expected.

- the argument "method" is now optional (useful, when no method should be invoked)

- improved documentation

- updates of message keys

whitespace changes

make clear, when passing objects or ids

- New option for all form_fields: "disabled_as_div" to render disabled input fields as div.

This has the advantage that con can provide with little effort highlighting in such fields.

- New conveniance method "is_disabled" to avoid repetitious cose

- Additional correct_when predicate: "contains".

Correct, when answer contains any of the provided words.

includelet form-usages: provide all used forms as links, when multiple forms are used as source

CVS: ----------------------------------------------------------------------

reduce verbosity

new parameter -return_irl for form-usages to control page to return to after e.g. editing the page.

improve handling of disabled compound form fields

improve naming

reduce verbosity

- added instance variable parent_field (when create_components is used).

This eases the upwards traversal for compound form fields.

- simplify usage of shuffling since it makes configuration via

form-constraints easier. we use now one field "shuffle_kind"

instead of the tow fields before.

Strip of validation part before checking for the existence of query parameter

Fix typo in regexp command

change order of class definition: move CompoundField to the front to let other fields depend on it

    • -1078
    • +1079
- new abstract form-field class: ShuffleField

* provide means for shuffling options and answers

* three shuffle modes:

- no-shuffling (parameter shuffle false)

- shuffling on every call

- shuffling for a seed (depending on an ID, always the same shuffling)

- new form-field class text_fields, based on ShuffleField

similar to checkbox, but with text fields

and autocorrection via "correct_when"

- support for richtext in checkbox labels

- factored out set_feedback (was previously inline in xowf)

- bump version number to 5.10.0d41

reduce verbosity

sort available-formfields by displayed class-name, not via fully qualified class-name

access components via instance variable

factor out loop invariants