Re: Global variable during request

2010-10-22 Thread Daniel Roseman
On Oct 22, 5:35 pm, Jop wrote: > Hello all, > > I've been googeling for a while but haven't been able to find a > solution for my problem. I will try to describe the problem > > I want to be able to set a variable in a view function on the start of > the request. During

Re: Global variable during request

2010-10-22 Thread Jop
Thnx, i'll try that :) On 22 okt, 18:39, Michael wrote: > Use middleware to set a threadlocal variable in a global namespace on > request, and unset it on response. > -- > Michael > > > > On Fri, 2010-10-22 at 09:35 -0700, Jop wrote: > > Hello all, > > >

Re: Global variable during request

2010-10-22 Thread Michael
Use middleware to set a threadlocal variable in a global namespace on request, and unset it on response. -- Michael On Fri, 2010-10-22 at 09:35 -0700, Jop wrote: > Hello all, > > I've been googeling for a while but haven't been able to find a > solution for my problem. I

Global variable during request

2010-10-22 Thread Jop
Hello all, I've been googeling for a while but haven't been able to find a solution for my problem. I will try to describe the problem I want to be able to set a variable in a view function on the start of the request. During the same request i want to use the variables value in a manager