[Zope-dev] User Name in python script

2002-02-25 Thread Sebastian Sippl
Hi, I need to get the name of the current user , in a python script i know how to get it in dtml , but i cant figure out how to get it in a python script. Please help me Sebastian ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] User Name in python script

2002-02-25 Thread Evan Simpson
Sebastian Sippl wrote: I need to get the name of the current user , in a python script In a recent Zope, you should be able to use: from AccessControl import getSecurityManager user = getSecurityManager().getUser() Cheers, Evan @ Zope ___