cvi <[EMAIL PROTECTED]> 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!

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to