xo::ConnectionContext proc require (private)

 xo::ConnectionContext[i] require [ -url url ] [ -package_id package_id ] \
    [ -parameter parameter ] [ -user_id user_id ] \
    [ -actual_query actual_query ] [ -keep_cc keep_cc ]

Defined in /var/www/openacs/packages/xotcl-core/tcl/context-procs.tcl

Create or reconfigure the current connection context, ::xo::cc.

Switches:
-url (optional)
Request URL. Supply a valid URL outside a connection thread.
-package_id (optional, defaults to "0")
Package ID, or 0 to infer it from the URL.
-parameter (optional)
Query parameter declarations.
-user_id (optional, defaults to "-1")
User ID, or -1 to derive it from the request.
-actual_query (optional, defaults to " ")
Query string, or a single space to read it from the connection.
-keep_cc (optional, defaults to "false")
Keep the existing context when one is already present.

Testcases:
test_xo_cc
[ show source ]
Show another procedure: