[Zope] Re: Zope.org feedback
Richard Taylor
r.taylor@eris.dera.gov.uk
07 Jul 2000 17:19:53 +0100
cvi <cvicneno@ltnb.lu> writes:
> Hi,
> Thanks for your help, but I've got some problems with etcUserFolder
> because I don't know where I should put my password file. I'd also like
> to know how to use the variable that contains the role of the user, in
> a Python script. I know that to get the username, you must use the
> variable REQUEST.AUTHENTICATED_USER. Could you help me ?
>
> THANKS A LOT FOR YOUR HELP.
You have two options:
1) To get a list of roles -
<dtml-var "AUTHENTICATED_USER.getRoles()">
2) To check if they have a specific role -
<dtml-var "AUTHENTICATED_USER.has_role('role_name')">
Hope this helps.
Richard
PS. cvi I am sending this to the list because your email address does
not work!