acs-developer-support-procs.tcl

  • last updated 12 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
The template_extension should be adp

Reworked the ADP revealing code to be gentler on OpenACS.

  1. … 3 more files in changeset.
Don't bomb if ds_profile start hasn't been called first

    • -13
    • +14
    ./acs-developer-support-procs.tcl
Added 'ADP reveal mode'

  1. … 9 more files in changeset.
merge all the changes on the oacs-5-1 and dotlrn-2-0 branches up to tag jcd-merge-20040420

  1. … 647 more files in changeset.
Added 'log' command to ds_profile, which causes it to spit out the profile info to the log file. Useful for things that are running in background threads

profile each .tcl and .adp page included, make ds_collection_enabled_p only check IP list once

  1. … 1 more file in changeset.
Added ds_profile proc for performance profiling

  1. … 2 more files in changeset.
Commented out ds_comments about user-switching

Cleaned-up, templated, and improved developer-support

  1. … 6 more files in changeset.
Added link to developer-support home

- Design improvements

- Fixed problems caused by untrusted_user_id as mentioned in forums thread

    • -19
    • +20
    ./acs-developer-support-procs.tcl
all TCL's clock clicks always with the -milliseconds option. The TCL manual

explicitly states that without this switch the return result is platform

dependant. The OpenACS code works at the millisecond granulartiy and silently

assumes that 1 millisecond equals 1000 clicks which is not necessarily true.

I used this shell script to automatize the replacing:

#!/bin/bash

for file in `grep -lsr "\[clock clicks\]" /web/openacs-head/packages/ `; do

echo "repairing $file"

sed "s/\[clock clicks\]/\[clock clicks -milliseconds\]/g" $file > fout

mv fout $file

done

And then grepped for

grep -r "expr.*clock clicks" /web/openacs-head/packages/

to manually remove the divisions by 1000.

  1. … 10 more files in changeset.
merge of changes on oacs-5-0 branch to oacs-5-0-0b4 tag

  1. … 598 more files in changeset.
allow variable subst in query on errno 2 (return)

adding ability watch whole packages on server startup with the PackageWatchList parameter

  1. … 1 more file in changeset.
dont bind sql in ds_collect_db_call if errno nonzero since it messes up the traceback sometimes

    • -28
    • +31
    ./acs-developer-support-procs.tcl
close tr tag bug 1061 patch 335 Randy o'Meara

make some Notices either warnings or debug and made them more descriptive by generally including the proc name as well bug #1032

  1. … 74 more files in changeset.
changed Notice to Debug or warning in ns_log commands

Allow flipping the database-statistics without a server restart

    • -18
    • +36
    ./acs-developer-support-procs.tcl
  1. … 2 more files in changeset.
More for bug #814.

  1. … 6 more files in changeset.
Part of the fix for bug #814. I will proceed in a per-package fashion.

Use apm_package_url_from_key

merge of 4.6.3b1 to HEAD

    • -67
    • +67
    ./acs-developer-support-procs.tcl
  1. … 43 more files in changeset.
Changes to the APM caused installation of this package to break things.

Someone beat me to it but this cleaner ...

working around error message reported here: http://openacs.org/forums/message-view?message_id=89854 by checking in ds_user_switching_enabled_p if the nsv exists (this happens at an unfortunate time when the acs-developer-support procs have been sourced, but not the init file)

properly support EnabledIPs parameter.

check is ds_enabled_p in ds_add

fix date format on request-info page

change sweeper so it can sweep data even if

there is no start record with the request.

package key is acs-developer-support no developer-support.

    • -25
    • +30
    ./acs-developer-support-procs.tcl
  1. … 2 more files in changeset.
Fixed problem with installing developer support causing subsequent packages to not load as per http://openacs.org/forums/message-view?message_id=78516

    • -32
    • +40
    ./acs-developer-support-procs.tcl
Making developer support show bind variable values in queries (only for PG) - thanks Lars. Adding a check in the -init.tcl file so that setup of nsv vars etc is only done once. The new APM will source -init.tcl files once per interpreter - we need to be wary of that.

  1. … 1 more file in changeset.