• last updated 7 hours ago
Constraints: committers
Constraints: files
Constraints: dates
Whitespace cleanup

New CSS abstraction: xowiki::CSS

Before this change, the application developer was responsible to

initialize the CSS-speficic settings (such as setting default values

for parameter classes). The new object xowiki::CSS is initialized

automatically, when an xowiki class (or one of its subclasses) is

initialized. Furthermore, it provides a per-thread caching to reduce

double work. Furthermore, the xowiki::CSS provides a mapping between

abstract and concrete CSS class names, such that switching between

different CSS toolkits becomes easier (e.g. upgrade from bootstrap 3

to newer versions).

xowiki::CSS initialize ;# make sure, everything is in line with PreferredCSSToolkit

xowiki::CSS clear ;# reset the mapping

xowiki::CSS toolkit ;# return the toolkit name

xowiki::CSS class /classname/ ;# perform CSS class name mapping

The methods "setCSSDefaults" and "preferredCSSToolkit" as deprecated.

The version number was bumped to 5.10.0d81

  1. … 7 more files in changeset.
more cleanup for setting of potentially unencoded return_url

  1. … 3 more files in changeset.
streamline returnredirect commands

make sure, the provided URL is always properly encoded

  1. … 2 more files in changeset.
strengthen parameter checking

  1. … 4 more files in changeset.
More restricted checking for object_ids

This avoids SQL errors in cases, where values are passed in via query variables

which are valid integers but out of range for SQL integer, which are 32-bit

integers. The better solution would even be to define an NSF argument type

"object_id", but unfortunately, this requires a newer version of NSF than

we target for the release.

new web-callback method "www-update-references"

This method can be called on the package-level to

referesh all page references (from wiki-links) for

an instance.

provide a friendly error message

allow at most 50K days, otherwise Tcl time scanner bails out

strengthen regular expression for "days"; valid arguments are e.g. "20d" or "14days"

revert incompatible change

Accept only integers as value for the rss query parameter

provide page-contract error instead of backtrace

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.
add debugging output for migration phase

Add a new subsite::parameter_changed implementation for xowiki, reacting to the switching of the use_hstore parameter

This way it won't be necessary for other packages to generate the hstore manually using private api

  1. … 1 more file in changeset.
improve warning message

avoid array notation for per_thread caches to ease flushing

  1. … 5 more files in changeset.
address issue #3460

  1. … 1 more file in changeset.
follow naming convention as used in other places as well

start key with the package name, use array notation

  1. … 1 more file in changeset.
make end of resub options explicit

  1. … 12 more files in changeset.
cache failed name lookups in a per-request cache (flushing maybe overly conservative)

  1. … 3 more files in changeset.
improve spelling

  1. … 4 more files in changeset.
Add missing parameter in doc

  1. … 1 more file in changeset.
Use common interface for object reference in bulk actions

- use same interface in child-resources and form-usages (when bulk-actions are used)

- move "get_ids_for_bulk_actions" from page to package (to make in usable in www/admin)

- use consistently "get_ids_for_bulk_actions" (also in www/admin/*.tcl)

- provide backward compatibility (still support "name" and "-parent_id")

  1. … 8 more files in changeset.
prefer SQL max() function over sort and limit 1

  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.
Use full URL paths for bulk actions.

This change allows one to mark items from multiple child-resources

displayed on one page and add these to the clipboard. Use the same

logic for bluk-delete and bulk adding to the clipboard.

  1. … 2 more files in changeset.
Make :folder_id available as a package instance variable immediately, in a way that if the folder instantiation needs e.g. to fetch a parameter, the folder_id will be there to determine the right parameter page, which otherwise would be looked up e.g. in the site-wide pages and cached with wrong values for the cache lifetime

Make ::xowiki::Package default_locale react to changes in the connection locale by caching only when the parameter use_connection_locale is not set, use ::xowiki::Package default_locale result instead of always the connection locale to determine nls_language for new Pages and FormPages, so that default language for a particular xowiki instance is decided by use_connection_locale parameter

  1. … 2 more files in changeset.