context-procs.tcl

Context handling interface Definition of a connection context, containing user info, URLs, parameters. this is used via "Package initialize"... similar as page_contracts and for included content (includelets), and used for per-connection caching as well. The intention is similar as with ad_conn, but based on objects. So far, it is pretty simple, but should get more clever in the future.

Location:
packages/xotcl-core/tcl/context-procs.tcl
Created:
2006-08-06
Author:
Gustaf Neumann <neumann@wu-wien.ac.at>
CVS Identification:
$Id: context-procs.tcl,v 1.79 2024/10/16 09:21:22 gustafn Exp $

Procedures in this file

Detailed information

xo::update_query (private)

 xo::update_query old_query var value

Replace in a URL-query old occurrences of var with new value.

Parameters:
old_query (required)
var (required)
value (required)
Returns:
encoded HTTP query

Testcases:
api__context

xo::update_query_variable (private)

 xo::update_query_variable old_query var value

Replace in a URL-query old occurrences of var with new value.

Parameters:
old_query (required)
var (required)
value (required)
Returns:
pairs in a form suitable for export_vars

Testcases:
api__context

xo::validate_parameter_constraints (public)

 xo::validate_parameter_constraints name constraint value

Validate the provided value against the constraints. In case of failure, return with ad_return_complaint when there is a connection, otherwise raise an error.

Parameters:
name (required)
constraint (required)
value (required)

Testcases:
No testcase defined.
[ show source ]