[BlueBream] security on links

Justin Ryan justin.ryan at reliefgarden.org
Sun Jul 25 09:31:50 EDT 2010


Whups, forgot to set the from addy as my list subscribed mail.

On Sun, Jul 25, 2010 at 6:30 AM, Justin Ryan <a.different.address> wrote:

>
>
> On Sun, Jul 25, 2010 at 1:50 AM, Adam GROSZER <agroszer at gmail.com> wrote:
>
>> Hello Justin,
>>
>> browser:menu is rather ancient, I won't use it anymore.
>>
>
> I can't find a working example of, e.g., how to enumerate menu items based
> on it, so I suspected this may be the case..
>
>
>> Current menu stuff is better done with viewlets, they manage security
>> well too.
>>
>>
> any examples? :)
>
>
>> If your task is not about a menu, you can check perm with:
>>
>>        if
>> zope.security.management.thread_local.interaction.checkPermission(
>>            'your.permisson-id', self.context):
>>
>>
>  ah-ha!  I think you're right about using viewlets, but for the moment,
> this is what I was looking for.
>
> Thanks, again!
>
> Justin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/bluebream/attachments/20100725/7216039c/attachment.html 


More information about the bluebream mailing list