Re: [Zope] request.set('AUTHENTICATED_USER',...

2006-01-14 Thread Stefan H. Holek
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 getSecurityManager().getUser() This is allowed in

[Zope] request.set('AUTHENTICATED_USER',...

2006-01-13 Thread Brian Brinegar
We are running Zope 2.6.x and I noticed yesterday that I could do the following: acl_users = container.acl_users user = acl_users.getUser('test_user') request.set('AUTHENTICATED_USER',user) print request.AUTHENTICATED_USER.getUserName() This isn't a huge deal since it doesn't seem to