• last updated 6 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
ad_sign: generalize last ad_sign handling to

allow user and csrf binding

  1. … 4 more files in changeset.
ad_sign: new optional parameter "user_binding"

The parameter user_binding allows to bind a signature to a user.

When the value is "-1" only the user who created the signature can

obtain the value again. A value of 0 (default) means no user binding.

The permissible values might be extended in the future.

bump version number to 5.10.0d24

  1. … 2 more files in changeset.
Remove backtick from the list of characters to be replaced by 'ad_sanitize_filename', as 'util::zip' deals with them properly now

util::zip reform.

+ Use '::zipfile::mkzip', introduced in tcllib 1.18, if available.

+ For unix-like systems, with older tcllib versions, bash was used for changing directories. This method was problematic when using certain characters for the filenames, such as backticks, for example. In order to avoid this and properly quote everything, we use tclsh instead, in a convoluted and funny way (thanks to Nathan Coulter for the hack).

+ TODO: test this method also on windows, and unify the legacy implementations if it works.

Add '`' to the list of sanitazable characters by 'ad_sanitize_filename'

Proc "util_get_subset_missing": make sure to return the found elements.

Added test case for this proc.

  1. … 1 more file in changeset.
Make 'util_user_message' quote the message when the parameter 'html_p' is false, not otherwise, restoring pre-refactoring behavior and making it coherent with the parameter doc

Simplify code and exploit parameter contract (we know flags are boolean)

Put some sanity in ancient proc docs with 'pre' tags that were breaking api-doc

clean up temporary objects after scheduled jobs

Make util_current_location robust such it does not raise an exception when not connected. In these cases, the configured ad_url is returned. This is not perfect either, since it would not work with host-node mapped subsites, and maybe, there are cases, where one wants just information based on the actual connection. so, maybe, one should provide either a higher level API and/or parameterize util_current_location in the future.

improve comments

  1. … 10 more files in changeset.
Fix doc typo

don't be so quick on phasing out deprecated code

  1. … 1 more file in changeset.
add flag "-suppress_port" to util::configured_location

fix bug with SuppressHttpPort on admin/index page of acs-subsite

see: https://openacs.org/forums/message-view?message_id=5399931

  1. … 3 more files in changeset.
Deprecate util_search_list_of_lists, as since Tcl 8.5 its behavior can be achieved natively through lsearch

  1. … 1 more file in changeset.
improve documentation: mention host-node map behavior

improve documentation

- Add support for dowloading archives

- add reusable adp-includes for handling resource downloads

- bump version number to 5.10.0d18

  1. … 4 more files in changeset.
introduce a urnMap in resource_info as a generalizable solution

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

  1. … 3 more files in changeset.
make all keys of the resource_info dict camel case

  1. … 4 more files in changeset.
fix typo

improve source code documentation

provide a common API for downloading resources from a CDN instead of maintaining per-packet variants

::util::resources::download

::util::resources::can_install_locally

::util::resources::is_installed_locally

- bump version number to 5.10.0d16

  1. … 1 more file in changeset.
Fix parameter names in proc doc

  1. … 1 more file in changeset.
Whitespace changeds

  1. … 3 more files in changeset.
Harmonize parameter names in proc documentation removing unnecessary hyphens

  1. … 4 more files in changeset.
prefer built-in ns_dbquotevalue over DoubleApos

  1. … 2 more files in changeset.
Streamline util_sets_equal_p (passes automated test)