[Zope] Requesting AUTHENTICATED_USER from within Python script?
olpa@mx.sybcom.de
olpa@mx.sybcom.de
Thu, 27 Sep 2001 09:43:17 +0200 (CEST)
On Wed, 26 Sep 2001, Dieter Maurer wrote:
> olpa@sybcom.de writes:
> > Blame me if this is already answered:
> >
> > how to check if current role is Manager and how is the name of the
> > authenticated user from within a Script (Python)... i.e. how to do
> > AUTHENTICATED.has_role('Manager') and AUTHENTICATED_USER.getUserName()
> > without passing AUTHENTICATED as argument.
> AUTHENTICATED_USER is a REQUEST member....
>
> Thus, you can use "container.REQUEST.AUTHENTICATED_USER".
>
>
> Dieter
danke! werde ich versuchen!