It has been the first thing I thought but then I added in my template:

    ${hex(id(request.user))}

near items <ul> and it showed there was 2 threads returning contents
alernatively with a User instance each always with the same id.

In other words 2 User instances surviving through requests, each one managed
by a single thread with its own persisting items collection.

Thanks for your attention.
neurino

On Mon, Oct 17, 2011 at 11:37 PM, Rob Miller <[email protected]> wrote:

> On 10/17/11 1:42 PM, neurino wrote:
>
>> Reading one more time Michael mail about the recipe:
>>
>>  > It advocates a mechanism to query the user the first time you access
>> that property of the request object and cache the result in memory for
>> the lifetime of that request
>>
>> *That's right the way I wanted it to work!*
>>
>> So why if I reload a page my user is not queried again and stills to an
>> older state?
>>
>
> Um, is it possible that you're just getting the same page from your browser
> cache, and therefore you're not hitting your server at all? Have you tried
> shift-reload to see if that changes the behaviour?
>
> -r
>
>
>> I *don't want* at all to have session variables, I want a brand new
>> queried request.user attribute each time the user loads its profile page.
>>
>> Thanks for your support
>> neurino
>>
>>
>>
>> On Mon, Oct 17, 2011 at 7:24 PM, Michael Merickel <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>>    It advocates a mechanism to query the user the first time you access
>>    that property of the request object and cache the result in memory
>>    for the lifetime of that request
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "pylons-discuss" group.
>> To post to this group, send email to 
>> pylons-discuss@googlegroups.**com<[email protected]>
>> .
>> To unsubscribe from this group, send email to
>> pylons-discuss+unsubscribe@**googlegroups.com<pylons-discuss%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/**group/pylons-discuss?hl=en<http://groups.google.com/group/pylons-discuss?hl=en>
>> .
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to 
> pylons-discuss@googlegroups.**com<[email protected]>
> .
> To unsubscribe from this group, send email to pylons-discuss+unsubscribe@*
> *googlegroups.com <pylons-discuss%[email protected]>.
> For more options, visit this group at http://groups.google.com/**
> group/pylons-discuss?hl=en<http://groups.google.com/group/pylons-discuss?hl=en>
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to