[Zope] Access to Authenticated User from Pythonscript ?

Chris Withers chrisw@nipltd.com
Thu, 07 Jun 2001 14:13:24 +0100


Peter Bengtsson wrote:
> 
> user = context.REQUEST.AUTHENTICATED_USER
> print user.getRoles()

This is deprecated.

bind the namespace and use:

_.SecurityGetUser()

...instead.

You might also be able to import the same thing into PythonScripts without the
namespace, but you'd need to ask Evan...

cheers,

Chris