[Zope] Obtaining user name in python

Garry Saddington garry at schoolteachers.co.uk
Fri Nov 28 02:40:13 EST 2008

I can do this in DTML:
<dtml-var "_.SecurityGetUser().getUserName()">

but I want to do it from a Python script, where the use of the underscore is 
not allowed. Can anyone point me in the correct direction?

More information about the Zope mailing list