Depends what you want to know.
identity.in_group('foo') will tell you if the current user is in group
'foo'
identity.not_anonymous() will tell you if the current user is logged in
at all
identity.user.current is the SQLObject representation of the current
user. Will provide you with a lot of info. Don't fiddle with this
object unless you know what you're doing.
Stuart
On Thu, 2006-11-09 at 13:21 +0300, Alexey Maksimov wrote:
> Hi,
>
> I'm using standard turbogears identity model.
> how do I know that given user is currently logged in?
>
> Thanks in advance, Alexey.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---