Home
The Toolkit for Online Communities
15889 Community Members, 0 members online, 2008 visitors today
Log In Register

acs-developer-support-procs.tcl

OpenACS Home : ACS API Browser : ACS Developer Support 5.4.3b1 : acs-developer-support-procs.tcl
Publicity:
[Public Only | All]

acs-developer-support-procs.tcl


Procedures in this file

Detailed information

ds_adp_box_class (public)

ds_adp_box_class
Return developer support adp box class on/off

 

ds_adp_end_box (public)

ds_adp_end_box [ -stub stub ]
Appends adp end box if the show toggle is true

Switches:
-stub (defaults to "$__adp_stub") (optional)
 

ds_adp_file_class (public)

ds_adp_file_class
Return developer support adp file on/off

 

ds_adp_output_class (public)

ds_adp_output_class
Return developer support adp output on/off

 

ds_adp_reveal_enabled_p (public)

ds_adp_reveal_enabled_p
Returns true if developer-support adp revealing facilities are enabled.

 

ds_adp_start_box (public)

ds_adp_start_box [ -stub stub ]
Appends adp start box if the show toggle is true

Switches:
-stub (defaults to "$__adp_stub") (optional)
 

ds_collection_enabled_p (public)

ds_collection_enabled_p
Returns whether we're collecting information about this request

 

ds_comment (public)

ds_comment value
Adds a comment to the developer-support information for the current request.

Parameters:
value
 

ds_comments_p (public)

ds_comments_p
Should we show comments inline on the page?

 

ds_conn (public)

ds_conn [ args... ]
Developer support version of ad_conn. Overloads "ad_conn user_id", delegates to ad_conn in all other cases.

 

ds_database_enabled_p (public)

ds_database_enabled_p
Returns true if developer-support database facilities are enabled.

 

ds_enabled_p (public)

ds_enabled_p
Returns true if developer-support facilities are enabled.

 

ds_get_comments (public)

ds_get_comments
Get comments for the current request

 

ds_get_db_command_info (public)

ds_get_db_command_info
Get a Tcl list with { num_commands total_ms } for the database commands for the request. Returns the empty string if the information is not available.

 

ds_get_page_serve_time_ms (public)

ds_get_page_serve_time_ms
Returns the number of miliseconds passed since this request thread was started. Returns the empty string if this information is not available.

 

ds_get_user_id (public)

ds_get_user_id [ original ]
Developer support version of ad_get_user_id, used for debugging sites.

Parameters:
original (defaults to "0")
 

ds_link (public)

ds_link
Returns the "Developer Information" link in a right-aligned table, if enabled.

 

ds_lookup_administrator_p (public)

ds_lookup_administrator_p user_id

Parameters:
user_id
 

ds_page_fragment_cache_enabled_p (public)

ds_page_fragment_cache_enabled_p
o Are we populating the page fragment cache?

 

ds_permission_p (public)

ds_permission_p
Do we have permission to view developer support stuff.

 

ds_profile (public)

ds_profile command [ tag ]
Helper proc for performance profiling. This will count the number of invocations of the given tag, the total time spent within all invocations (between the corresponding 'ds_profile start' and 'ds_profile stop' invocations). The results will be output at the bottom of the page, and include the average time spent per invocation.

Parameters:
command -
  • start marks the beginning of a block.
  • stop marks the end of a block. Start and stops must match.
  • log output profiling information to the server error log at level Notice.

tag (optional) - The name of the operation you're timing. Could be the name of a procedure, or some other unique identifier.
 

ds_require_permission (public)

ds_require_permission object_id privilege
Requires the user identified by ds_add_conn user_id to have the given privilege on the given object.

Parameters:
object_id
privilege
 

ds_set_adp_reveal_enabled (public)

ds_set_adp_reveal_enabled enabled_p
Enables/disables database statistics in a safe manner.

Parameters:
enabled_p
Author:
Lars Pind <lars@pinds.com>
Created:
31 August 2000
 

ds_set_database_enabled (public)

ds_set_database_enabled enabled_p
Enables/disables database statistics in a safe manner.

Parameters:
enabled_p
Author:
Lars Pind <lars@pinds.com>
Created:
31 August 2000
 

ds_set_user_switching_enabled (public)

ds_set_user_switching_enabled enabled_p
Enables/disables user-switching in a safe manner.

Parameters:
enabled_p
Author:
Lars Pind <lars@pinds.com>
Created:
31 August 2000
 

ds_show_p (public)

ds_show_p
Should we show developer-support on the current connection.

 

ds_user_select_widget (public)

ds_user_select_widget
Build a select widget for all users in the system, for quick user switching. Very expensive (returns a big file) for openacs instances with a large number of users, so perhaps best used on test instances.

 

ds_user_switching_enabled_p (public)

ds_user_switching_enabled_p
Returns whether user-switching is enabled.