Title: RE: [Zope-dev] CoreSessionTracking

Do you mean:

 from AccessControl import getSecurityManager

 security = getSecurityManager()
 user = security.getUser()
 userName = user.getUserName()



-----Original Message-----
From: Chris Withers [mailto:[EMAIL PROTECTED]]
Sent: Monday, 23 April 2001 16:57
To: Chris McDonough
Cc: Magnus Heino (Rivermen); [EMAIL PROTECTED]
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


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to