[Zope] preventing acquisition

Chris Withers chrisw@nipltd.com
Wed, 01 Nov 2000 13:42:19 +0000


Robin Becker wrote:
> So if I have a path
> 
> /A/B/C
> 
> I would like to inhibit the behaviour that allows
> me to view
> 
> /A/B/C/A and /A/B/C/A/B/C etc.
> 
> to inhibit the first I can put something like
> 
> <dtml-if "PARENTS[0].id not in PARENTS[1].objectIds()">
>      <dtml-raise NotFound>
>           <h2>You're not supposed to be looking at
>           <dtml-var "absolute_url()"> </h2>
>      </dtml-raise>
> </dtml-if>
> 
> in my index_html, but this doesn't work for the second case. Is there a
> generic way to do this?

You could create a non-acquiring folder product and use that...

cheers,

Chris