Re: [Zope] Pb getting local roles ... strange

2000-08-18 Thread Shane Hathaway

Didier Georgieff wrote:
> 
> Hello,
> 
> I'm on 2.1.6.
> I'm trying to have an information box with all roles.
> 
> 
>  
> 
> 
> works OK. But doesn't give the local roles.
> So i tried
> 
> 
>  
>   
>  
> 
> 
> But it only gives ['owner'] and not the other local role ['roleFoo'].
> But the response is correct if i test with
> 
>  is
> True.
> 
> Is it a bug or a misunderstanding ? I found nothing on the archives.
> Thanks in advance.

Have you tried AUTHENTICATED_USER.getRolesInContext(this())?

Shane

___
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 )




[Zope] Pb getting local roles ... strange

2000-08-18 Thread Didier Georgieff

Hello,

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


 


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


 
  
 


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

 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 )