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 )