Re: threadlocals with limit_choices_to in models

2006-09-27 Thread Luke Plant
On Thursday 21 September 2006 21:56, Kr0n wrote: > ibson wrote: > > Apologiz for saying it worked!!! It doesn't work after some times > > even after restarting apache every 15 minutes!!! > > So the question is always there. And it seems I am not the only to > > hav this problem > > Yep. I've also

Re: threadlocals with limit_choices_to in models

2006-09-21 Thread Kr0n
ibson wrote: > :| > Apologiz for saying it worked!!! It doesn't work after some times even > after restarting apache every 15 minutes!!! > So the question is always there. And it seems I am not the only to hav > this problem Yep. I've also a problem with this, but for me it's simply doesn't work

Re: threadlocals with limit_choices_to in models

2006-09-21 Thread ibson
:| Apologiz for saying it worked!!! It doesn't work after some times even after restarting apache every 15 minutes!!! So the question is always there. And it seems I am not the only to hav this problem --~--~-~--~~~---~--~~ You received this message because you ar

Re: threadlocals with limit_choices_to in models

2006-08-30 Thread Ibsoman
hi all :)I found my problem myself!! I didn't notice that every where I use the hack I have to all the method in order to create a new local thread!!Now it seems a little stable!Thanks all On 8/30/06, ibson <[EMAIL PROTECTED]> wrote: Maybe no one faced that problem.I now want to know why sometimes

Re: threadlocals with limit_choices_to in models

2006-08-30 Thread ibson
Maybe no one faced that problem. I now want to know why sometimes the user doesn't change if there was 2 simultaneous connection. how can I do that each connection use a different local thread? (Or I don't understand something in this hack??) ibson wrote: > Hi, > I'm using the threadlocals hack >

threadlocals with limit_choices_to in models

2006-08-29 Thread ibson
Hi, I'm using the threadlocals hack (http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser) in my model to filter machines by group. But it's not stable at all. And most of the time the filter return nothing because the usergroup is empty. Here's a piece of my code : usergroup = threadlo