Re: [TurboGears] request.identity update after change to tg_user table

58 views
Skip to first unread message

Michael Pedersen

unread,
Sep 27, 2012, 1:48:12 AM9/27/12
to turbo...@googlegroups.com
Ryan, I wanted to let you know that I *did* see your message, but I'm
flat out of time to reply today. Too much else got done, and I just
didn't have time to research the problem to give you an answer. I'm
sorry for that.

I will look tomorrow and see what I can find. In the meantime, you
might consider looking through repoze.who documentation for ideas,
since that's what is responsible for setting those variables up. Maybe
you'll get an answer before me, even :)

On Wed, Sep 26, 2012 at 12:05 PM, RyanWilson <ryanpau...@gmail.com> wrote:
> Hi,
>
> Using a TurboGears 2.2 default project with authentication, I have created a
> form to allow users to modify their password and login info. It works great
> except that after I update the table request.identity return the values that
> existed at login. How do I refresh repoze.who to contain the current
> tg_user values without forcing the user to log in again?
>
> Thanks,
>
> Ryan
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/7iPk1SmQF48J.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to
> turbogears+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.



--
Michael J. Pedersen
My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen
Google Talk: m.ped...@icelus.org -- Twitter: pedersentg

Carlos Daniel Ruvalcaba Valenzuela

unread,
Sep 27, 2012, 4:13:46 AM9/27/12
to turbo...@googlegroups.com
Seems to me a problem with stale objects/cache somewhere, I think the
SQLAlchemy session behaviour is to automatically update the object
instances but I don't think this propagates when using multiple
sessions/connections like what happens with a threaded server or with
multiple process.

Are you using Paste server?, can you try running it with either
gunicorn/uwsgi with 1 and 2 processes?

Regards,
Carlos Ruvalcaba

RyanWilson

unread,
Oct 26, 2012, 1:57:10 PM10/26/12
to turbo...@googlegroups.com
Thanks,

I was unable to figure it out, but that's ok, I don't mind forcing the user to re-login.

Best,

Ryan
Reply all
Reply to author
Forward
0 new messages