[Zope] Get current username within pythonscript

David Bear David.Bear@asu.edu
Tue, 28 Jan 2003 20:24:33 -0700


On Tue, Jan 28, 2003 at 05:23:39PM -0800, Dylan Reinhardt wrote:
> Try:
> 
> from AccessControl import getSecurityManager
> return getSecurityManager().getUser()
> 
how about:

# Returns the name of the current authenticated user
return(context.REQUEST.AUTHENTICATED_USER.getUserName())

--
David Bear
College of Public Programs/ASU
Mail Code 0803