[Zope] Referencing authenticated user
Andreas Jung
lists at zopyx.com
Tue Jan 30 15:54:21 EST 2007
--On 30. Januar 2007 21:52:52 +0100 Maciej Wisniowski
<maciej.wisniowski at coig.katowice.pl> wrote:
>> I need to modify a Zope product to record the authenticated user
>> executing a method.
>>
>> How do I refer to the authenticated user ?
> You may try:
> self.REQUEST.AUTHENTICATED_USER
nah...don't do that. Use
from AccessControl import getSecurityManager
user = getSecurityManager().getUser()
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070130/74695d04/attachment.bin
More information about the Zope
mailing list