[Zope] Checking Authenticated User Name???
Jason Burke
jburke@luci.org
Wed, 10 Apr 2002 18:01:40 -0500
Greetings All,
I apologize if this question has been asked before, but I searched
(and searched, and searched), but couldn't find any hint of an
answer. The question that I have is:
What's the best way to query the logged in user's name in a
python script (not external script and not with DTML)?
The API docs mention something about an AuthenticatedUser
class, but I can't find the object anywhere in my ./Zope/lib/python
directory, and it doesn't appear to be a class in any of the zope
modules that I searched through.
I did notice a reference to something like this...
REQUEST.AUTHENTICATED_USER.getUserName()
but, this doesn't seem like it would be any more secure than
just assigning REQUEST.AUTHENTICATED_USER to a
variable.
I'll be eternally grateful to the person who can answer this, or
provide me with a good resource that can answer this. =)
Sincerely,
Jason Burke