[Zope-dev] CoreSessionTracking

Chris McDonough chrism@digicool.com
Mon, 23 Apr 2001 12:31:09 -0400


RE: [Zope-dev] CoreSessionTrackingThat's it!  Except from DTML. ;-)

----- Original Message -----
From: Adrian Hungate
To: 'Chris Withers' ; Chris McDonough
Cc: Magnus Heino (Rivermen) ; zope-dev@zope.org
Sent: Monday, April 23, 2001 12:00 PM
Subject: RE: [Zope-dev] CoreSessionTracking


Do you mean:
 from AccessControl import getSecurityManager
 security = getSecurityManager()
 user = security.getUser()
 userName = user.getUserName()
???
Adrian...
-----Original Message-----
From: Chris Withers [mailto:chrisw@nipltd.com]
Sent: Monday, 23 April 2001 16:57
To: Chris McDonough
Cc: Magnus Heino (Rivermen); zope-dev@zope.org
Subject: Re: [Zope-dev] CoreSessionTracking


Chris McDonough wrote:
>
> Alternately (and this will be in the next CST release), add this to the
> session data object class (SessionData.SessionData):
>
> __guarded_setitem__ = __setitem__
OK, that'll teach me to read the whole thread before I post :-)
> As far as finding the currently logged in user's name, try this:
>
> context.REQUEST['AUTHENTICATED_USER'].getUserName()
>
> This is a deprecated API, however.  The new one I can't find at the
moment,
> though.  ;-)
When you find out, can you let us know :-S
Chris
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )