[Zope] Pb getting local roles ... strange

Didier Georgieff Didier.GEORGIEFF@agriculture.gouv.fr
18 Aug 2000 17:12:05 +0100


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 : didier.georgieff@agriculture.gouv.fr
GéoWeb http://10.67.90.3 (Intranet Agriculture)
GéoWeb http://sertit10.u-strasbg.fr (Internet)