31 Oct
2000
31 Oct
'00
6:58 p.m.
I have some folderish Zclasses which have index_html methods to implement a UI. I would like to inhibit acquisition of these. 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? -- Robin Becker