xowiki-utility-procs.tcl

  • last updated 9 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix typo

Added support for passing parameter_name:value_constraint to xowiki::Package->get_parameter

- The get_parameter method can get values from query-parameters, therefore

we have to validate these.

- Use the new feature at several places (especially for boolean values)

- Still, more places should be checked

- bumped xowiki to 5.10.1d37

- bumped xotcl-core to 5.10.1d14

  1. … 10 more files in changeset.
improve spelling

  1. … 7 more files in changeset.
Add doc to public api

  1. … 1 more file in changeset.
new proc "ad_log_deprecated": unified interface for logging deprecated usages

The existing code used a larger variety of different messages to

denote invocations of deprecated procs and other

artifacts. "ad_log_deprecated" provides a unified interface, and

provides a usage hint what to use instead based on the API-doc

definitions in the log-file.

  1. … 11 more files in changeset.
get rid of "xowiki::adp_parse_tags", since this is handled now already in acs-templating

  1. … 4 more files in changeset.
whitespace changes

Improved Bootrap5 support

- transformed PageInstance->adp_parse_tags into an adp_proc

xowiki::PageInstance->adp_parse_tags to ease usage outside methods.

- made personal-notification proc agonsitic of Boostrap 3

- renamed attribute "-glyphicon" to "-adpicon" in

personal-notification-messages->modal_message_dialog

and use adp:icon instead

- added regression test

- bumped version number to 5.10.1d26

  1. … 5 more files in changeset.
fix typo

factor out common code

  1. … 2 more files in changeset.
prefer "Package require" over "Package initialize" when possible

  1. … 2 more files in changeset.
prefer standard OpenACS API for accessing parameters

  1. … 4 more files in changeset.
prefer usage of "xo::write_tmp_file" over "xo::write_file" for writing tmp files

  1. … 4 more files in changeset.
improve spelling

  1. … 1 more file in changeset.
Add all whitespace characters between double quotes when converting a dict to hstore

Many thanks to Guenter Ernst for the analysis.

Extended regression test

  1. … 1 more file in changeset.
added utility function xowiki::filter_option_list to select a subset from an option list

added form.form to ease creation of forms as form pages (important for using forms from global instance as form pages in workflows)

  1. … 3 more files in changeset.
improve comment

added function "xowiki::randomized_index"

extended regression test

bumped version to 5.10.0d75

  1. … 2 more files in changeset.
Reinstate api as private, downstream cases need to be adapted

Make proc public: many downstream packages use it e.g. in their upgrade scripts

mark functions for administrative proposes as private

  1. … 1 more file in changeset.
make "instantiate_forms" a method of packages

this reads better than the previous variant based on the Weblog class.

  1. … 14 more files in changeset.
variable constraint "integer" not supported in xotcl

added support call for unifying forms

  1. … 1 more file in changeset.
introduced "ad_file" as a means to avoid unexpected tilde substitution in file names

  1. … 50 more files in changeset.
improve SQL quoting and source code documentation

add item shuffling for test item procs and do some minor refactoring

  1. … 7 more files in changeset.
prefer all caps spelling for SQL

  1. … 2 more files in changeset.
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. … 2 more files in changeset.