AUTHENTICATED_USER has been deprecated aeons ago and should have
vanished from the REQUEST by means of bit rot alone ;-). You have to
ask the security manager for the current user:
from AccessControl import getSecurityManager
This is allowed in Python Scripts, AFAIK.
On Jan 13, 2006, at 20:22, Brian Brinegar wrote:
We are running Zope 2.6.x and I noticed yesterday that I could do the
acl_users = container.acl_users
user = acl_users.getUser('test_user')
This isn't a huge deal since it doesn't seem to change the permissions
available to the user. But many of our scripts rely on
AUTHENTICATED_USER.getUserName() to return the actual logged in user.
this addressed in later versions of Zope? Is there a better way to get
the current user's user name?
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is. /Pete McBreen/
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -