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

Partial Call Graph (max 5 caller/called nodes):
%3 test_api__context api__context (test xotcl-core) xo::update_query xo::update_query test_api__context->xo::update_query util::suspicious_query_variable util::suspicious_query_variable (public) xo::update_query->util::suspicious_query_variable Class ::xowf::test_item::Answer_manager Class ::xowf::test_item::Answer_manager (public) Class ::xowf::test_item::Answer_manager->xo::update_query xowf::test_item::Answer_manager instproc runtime_panel xowf::test_item::Answer_manager instproc runtime_panel (public) xowf::test_item::Answer_manager instproc runtime_panel->xo::update_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

Partial Call Graph (max 5 caller/called nodes):
%3 test_api__context api__context (test xotcl-core) xo::update_query_variable xo::update_query_variable test_api__context->xo::update_query_variable util::suspicious_query_variable util::suspicious_query_variable (public) xo::update_query_variable->util::suspicious_query_variable

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)

Partial Call Graph (max 5 caller/called nodes):
%3 xo::ConnectionContext instproc form_parameter xo::ConnectionContext instproc form_parameter xo::validate_parameter_constraints xo::validate_parameter_constraints xo::ConnectionContext instproc form_parameter->xo::validate_parameter_constraints xo::ConnectionContext instproc query_parameter xo::ConnectionContext instproc query_parameter (public) xo::ConnectionContext instproc query_parameter->xo::validate_parameter_constraints xowiki::Package instproc get_parameter xowiki::Package instproc get_parameter (public) xowiki::Package instproc get_parameter->xo::validate_parameter_constraints acs::icanuse acs::icanuse (public) xo::validate_parameter_constraints->acs::icanuse ad_return_complaint ad_return_complaint (public) xo::validate_parameter_constraints->ad_return_complaint ad_script_abort ad_script_abort (public) xo::validate_parameter_constraints->ad_script_abort

Testcases:
No testcase defined.
[ show source ]