AW: AW: [Zope] Do All Classes Have Default Current Objects? REQUE ST.AUTHENTICATED_USER.getUserName()
24 Oct
2001
24 Oct
'01
12:13 p.m.
Hans,
<dtml-var expr="_.SecurityGetUser().getUserName()"> You can retrieve the currently logged in user with the SecurityGetUser etc..
In Python I had no success with this because the import of AutenticatedUser is by Zopes security blocked.
However, i was not able to use this function from within a pythonscript. I am sure somebody else can do that, i am interested in the solution, so if you have one...
This works: user = container.REQUEST.AUTHENTICATED_USER.getUserName() I had a mistake some lines below but I do not see much logging in my browser. (DTML-Method calls Python-Script) Regards Armin
8930
Age (days ago)
8930
Last active (days ago)
0 comments
1 participants
participants (1)
-
Krone, Armin