25 Apr
2002
25 Apr
'02
11:29 p.m.
dman wrote:
I have a Python Script that needs to find out the name of the currently authenticated user. I saw docs that say to use SecurityGetUser() and provide some sample DTML. I can't seem to find that method anywhere in my Python Script (and the lack of dir() doesn't help me find it). Using REQUEST.AUTHENTICATED_USER seems to work, but is that the Right Way to do it?
TIA, -D
hi, something like this should work in a Python-Script: import AccessControl print AccessControl.getSecurityManager().getUser() return printed greetings, maik. -- maik jablonski http://www.sachunterricht-online.de universitaet bielefeld http://www.zfl.uni-bielefeld.de zentrum fuer lehrerbildung tlph://+49.(0).521.106.4234