On Sat, Oct 17, 2009 at 9:51 AM, Jorge Vargas <[email protected]> wrote: > > On Fri, Oct 16, 2009 at 6:38 AM, jitesh <[email protected]> wrote: >> >> Hi, >> >> In TG1 we were getting the current user object as >> "identity.current.user". >> >> In TG2, we can get the userid by using "request.identity >> ['repoze.who.userid']". >> After getting the userid, we can get the current user object by making >> a query. >> >> Instead of doing this, is there any method like TG1 to access the >> current user object?
request.identity['user'] should be what you are looking for --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

