• last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
When fetching files for a given package we also want to retrieve sql files.

Needed to decode list items html since it is used as a JS array index.

apm_get_package_files has new boolean switch -include_data_model_files in order to allow including/excluding sql files when looking for files within a package.

Creating recursive version of permissions functions iff pg version is >= 8.4.

Taking .sql out of the list of ignored file extensions. Otherwise create/upgrade sql scripts are not loaded while installing/upgrading.

- update the blueprint of the xotcl::THREAD instances as well while keeping the state (do not restart the thread)

- use sysctl instead of uptime where available (the "uptime" command from mac os x spits sometimes errors about /dev/ttys out, when apparently a console was not shut down correctly)

- add "xo::broadcast blueprint /script/":

This command can be used to update the blueprint of all threads (including schedule threads)

Example

::xo::broadcast blueprint { source /tmp/t.tcl }

- make recreate method of THREAD more robust

- 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. … 7 more files in changeset.
- add missing test for non-empty where clause in hstore case

    • -2
    • +2
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
next_row instead of this_row has to be unset at this point.

- make use of ::xo::db_list* functions

    • -4
    • +5
    /openacs-4/packages/xowiki/tcl/package-procs.tcl
    • -13
    • +17
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
- add opimized versions of db_list and db_list_of_lists in the xo namespace

- use absolute name to avoid namespace confusions

- fix typo

- bump version number

- update dependency on xotcl-core

- use faster sql interface

    • -3
    • +3
    /openacs-4/packages/xowiki/xowiki.info
    • -1
    • +1
    /openacs-4/packages/xowiki/tcl/folder-procs.tcl
    • -5
    • +6
    /openacs-4/packages/xowiki/tcl/package-procs.tcl
    • -3
    • +2
    /openacs-4/packages/xowiki/tcl/weblog-procs.tcl
    • -9
    • +9
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
- bump version number to 0.125

- provide optimized database interface for postgres (often, speed improvements of 25-30% for queries already in the code)

- prefer bindar emulation over dollar-substitution

    • -6
    • +6
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
- use "unset -nocomplain ..." instead of exists test

- get rid of "global" statements

- use naviserver's urldecode when available (for speed and currectness)

Removing unneeded emptiness check against item_id. 'string is integer' w/out the -strict switch returns 1 in case variable is empty.

    • -2
    • +2
    /openacs-4/packages/xowiki/tcl/package-procs.tcl
Performance improvements for rp_filter and parameter:

- improve performance of rp_filter (which is run on every

non-resources request) significantly (often a factor of 2)

- improve scalability by reducing number of required mutex locks

(e.g. for secret token handling)

checking that item_id is a valid integer iff it has been provided.

    • -2
    • +2
    /openacs-4/packages/xowiki/tcl/package-procs.tcl
- fix fetch_entry_label for cr-item attributes

- add git to the list of ignored directories for apm loading

- use usual style non-poistional arguments in ad_proc

- use tcl 8.5 operations

- apm_file loader: ignore directories www/resources/, catalog/, upgrade/

- apm_file loader: ignore extensions .html .gif .png .jpg .ico .pdf .js .css .xsl .tgz .zip .gz .java .sql

- align implementation of apm_backup_file_p with documentation