[Zope] How to get the current logged on user?

Chris Withers chrisw@nipltd.com
Tue, 24 Sep 2002 13:05:10 +0100


Dennis Allison wrote:
> Set the DTML namespace for the python script to '_', then reference
> the user 
>    
>    us = _.SecurityGetUser().getUserName()
>    print us
>    return printed

Eww... yucky ;-)

Chris Beaven's suggestion the the papally blessed way I believe...

cheers,

Chris