• last updated 10 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
file content-init.tcl was initially added on branch oacs-5-8.

acs-content-repository:

- new public function "cr_cleanup_orphaned_files" to clean up orphaned

files incrementally based on cr-file creation log

- added "cr_cleanup_orphaned_files" to "cr_delete_scheduled_files"

to perform cleanup automatically

- new function to handle cr-file creation log, which is used to

removed orphaned files (created by aborted transactions)

- the function "cr_check_orphaned_files" can still be used

for cleaning up orphaned files from times before the

cr-file creation log was in place (that is from the birth of

OpenACS until now).

acs-tcl:

- new function "ad_mutex_eval" for safely executing

tcl commands under a mutex lock

    • -9
    • +5
    ./acs-content-repository-procs-postgresql.xql
    • -13
    • +18
    ./acs-content-repository-procs.tcl
  1. … 1 more file in changeset.
Added check for trailing slash on cr folder, required for find command to work properly.

    • -17
    • +24
    ./acs-content-repository-procs.tcl
- use external command "find" instead of tcllib package fileutil for speed and better filtering

- add index for much quicker reverse lookup file names in the content repository

    • -0
    • +6
    ./acs-content-repository-procs-oracle.xql
    • -0
    • +21
    ./acs-content-repository-procs-postgresql.xql
  1. … 3 more files in changeset.
file acs-content-repository-procs-postgresql.xql was initially added on branch oacs-5-8.

    • -0
    • +0
    ./acs-content-repository-procs-postgresql.xql
- cr_check_orphaned_files: new helper proc to locate (or delete) orphaned files in the content repository (see also bug #2619)

- use $::acs::rootdir rather than [acs_root_dir] or [get_server_root]

    • -2
    • +2
    ./acs-content-repository-callback-procs.tcl
  1. … 1 more file in changeset.
- use $::acs::rootdir rather than [acs_root_dir] or [get_server_root]

    • -2
    • +2
    ./acs-content-repository-callback-procs.tcl
  1. … 9 more files in changeset.
- use "![info exists]" instead of "template::util::is_nil" on scalars

  1. … 4 more files in changeset.
- use "in" operator instead of "lsearch"

- use numeric comparison operator for truth value comparisons

- make ad_return deprecated; maybe this function was useful for ancient versions of tcl, but as it is, it does not make sense (see comment in code)

  1. … 1 more file in changeset.
- use "in" or not in (ni) operator instead of lsearch (for readability and performance)

- use "eq" instead of "string equal"

- modernize tcl

    • -3
    • +4
    ./test/acs-content-repository-procs.tcl
- use "lassign" instead of "foreach ... break" idiom

  1. … 5 more files in changeset.
- use standard error message reporting

  1. … 1 more file in changeset.
- get rid of empty_string_p

  1. … 3 more files in changeset.
- replace deprecated acs_sc_call by acs_sc::invoke

  1. … 10 more files in changeset.
- replace depreacted "ns_mkdir" by "file mkdir"

  1. … 9 more files in changeset.
- added victor's patch to omit deprecated messages of "ns_info tcllib". Background: naviserver supports multiple (virtual) servers, which might have different tcllibs. Therefore, the preferred command to query this was moved to "ns_server ?-server s? tcllib" and "ns_info tcllib" was deprecated. From the OpenACS point of view, one wants to locate the actual library. Since the variable does not change, it is fine to store it in a per-thread variable which can be efficiently accessed.

  1. … 20 more files in changeset.
- replace deprecated command "ns_unlink" with native tcl command "file delete"

  1. … 7 more files in changeset.
- abstract in check for existance of a command whether this is scripted or not

- use a more modern tcl command set

  1. … 12 more files in changeset.
Revert unintended change

Revert unintended change

- Don't require ad_returnfile_background to be a proc

- use usual parameter notation

Use passed in content type, default to image

Fix test which in one part assumed live revision and the rest of the test looked for latest revision. Second pass, all tests pass now.

Fix test which in one part assumed live revision and the rest of the test looked for latest revision. Second pass, all tests pass now.

Fix test which in one part assumed live revision and the rest of the test looked for latest revision.

Make content::item::new is live parameter default to f instead of empty string to match content::revision::new