Hi,
Is there a way to set a global which stays in memory for the life of
the server and not just for the life of a request?
I am asking this because I want to set some server wide configuration
items and I do this at the moment:
global CFG
set CFG(ITEM_1) val_1
set CFG(ITEM_2) val_2
But
On Mar 19, 2008, at 3:21 PM, Xavier Bourguignon wrote:
Hi,
Is there a way to set a global which stays in memory for the life of
the server and not just for the life of a request?
nsv_*
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to
nsv_set / nsv_get / nsv_array etc
and ns_share as well (not sure if ns_share is standard or a module).
Best Regards / Cordialement
Jean-Fabrice Rabaute
CORE SERVICES :: Software/Web development Consulting services
http://www.core-services.fr - {Enjoy the future
You can use nsv shared variables, which makes the variable shared by
all threads. You can initialize these values in a library Tcl file,
like init.tcl.
See: http://panoptic.com/wiki/aolserver/Thread-shared_Variables
A second (and possibly better) way is to set these values in a section
of
I've never been fond of the fact that AOLServer has no internal
redirect mechanism.
Rob Seeger
Xavier Bourguignon wrote:
Thanks Don and Darren, I will look at the info.
I just find it strange that I have to REDIRECT to another url, to me
redirect means to go away from the current context to
Because your question makes it sound like you might be misunderstanding
some things...
When you set a global variable (global bob ; set bob 1) during the
evaluation of your page, that variable exists only in the interpreter
that is being used for your page. There are many interpreters (one
On Mar 19, 2008, at 8:08 PM, Robert Seeger wrote:
I've never been fond of the fact that AOLServer has no internal
redirect mechanism.
You can implement your own, in Tcl. We have one in OpenACS, but it's
tied slightly to our way of mapping URLs to paths, and our template
engine.
But