[Zope] How to properly do navigation Bar without un-authorized sub-objects?

Casey Duncan cduncan@kaivo.com
Tue, 27 Feb 2001 08:46:57 -0700


Brad Clements wrote:
[snip]
> 
> To avoid a recursive loop resolving DrawNavBar, I use aq_explicit, like
> this:
> 
> <dtml-try>
> <dtml-var "_.getattr(PARENTS[-1].Z.Admin.aq_explicit,'ShowNavBar')(_.None,_)">
> <dtml-except AttributeError>
> </dtml-try>
> 
> The problem with this is that I get a login prompt from LoginManager if I'm
> anonymous..
> 
[snip]

Did you try setting a proxy role on the ShowNavBar method that can
execute this?

-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>