Hello,

I'm on 2.1.6.
I'm trying to have an information box with all roles.

<dtml-in "AUTHENTICATED_USER.getRoles()">
 <dtml-var sequence-item>
</dtml-in>

works OK. But doesn't give the local roles.
So i tried 

<dtml-with URL0>
 <dtml-in "get_local_roles()">
  <dtml-var sequence-item>
 </dtml-in>
</dtml-with>

But it only gives ['owner'] and not the other local role ['roleFoo'].
But the response is correct if i test with 

<dtml-if "AUTHENTICATED_USER.has_role('roleFoo',this())"> is 
True.

Is it a bug or a misunderstanding ? I found nothing on the archives.
Thanks in advance.

 
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
GéoWeb http://10.67.90.3 (Intranet Agriculture)
GéoWeb http://sertit10.u-strasbg.fr (Internet)

_______________________________________________
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