--On 30. Januar 2007 21:52:52 +0100 Maciej Wisniowski <[EMAIL PROTECTED]> 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

Attachment: pgpIdZDgzebaf.pgp
Description: PGP signature

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to