On 14/06/12 16:29, Chris McDonough wrote:
>> spanning multiple requests. Just to avoid querying it multiple times per
>> request.
>>
>> Or do you mean it can change in the middle of a single request? That's a
>> scary idea :)
> I just mean storing it for the single request, not a full-blown cache
>
> Not really that scary; pretty common.
>
> def aview(request):
>     request.user.add_group(...)
>
> .. code like the above might run as the result of a user completing
> some profile information, or verifying an email address, etc.
OK, I see your point now. I'd personally rather prefer to stop request
processing and force reload/redirect after any modifications of the
permissions, but that's a matter of taste/particular case, I suppose.

Thansk,
Przemek

-- 
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.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to