On Jan 26, 2009, at 1:33 PM, Gustavo Narea wrote:

> Just for the record, there's already an SQLAlchemy/Elixir-based  
> repoze.who
> authenticator:
> http://code.gustavonarea.net/repoze.who.plugins.sa/
>
> So you don't have to write it yourself.
>
> Cheers.
>
> PS: Regarding your problem, I think RedirectingFormPlugin is a good  
> solution.
> But anyway, I think this conversation deserves its own thread.

Excellent!  Although I'm not sure I would personally use the Metadata  
provider as it must fetch the user object on every request.

In the past, I've used a expunge - pickle <-> unpickle - merge pattern  
(using the session as the store).  My latest project has really made  
me think, "How often do I really NEED the full mapped User object in  
each request?  90%+ of the time, I just need the user_id, user_name  
which I can get out of the identity object (provided I set it in my  
metadata provider).

TJ


--~--~---------~--~----~------------~-------~--~----~
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