[Zope] Testing for and/or avoiding acquisition

Paavo Parkkinen pparkkin@verso.st.jyu.fi
Wed, 9 Jul 2003 15:56:20 +0300


On ke, 09.07.2003 at 05:22 -0700, Dylan Reinhardt wrote:

> Put a method in your root called 'content.html' and make it do whatever
> you wanted done by your 'no-content.html' object.  Then proceed to plac=
e
> other 'content.html' objects where you want them to apply.
>=20
> If there is no other content.html available, the one in the root will b=
e
> called... and whatever you want done in that case will be done.

That would work, unless you had a situation like this:

root
 |- content.html (no-content)
 |- folder1
 |  |- content.html
 |  `- folder3
 `- folder2

folder1 would work ok, showing it's content.html, and so would
folder2, showing the no-content-content.html. folder3 would be
screwed, showing folder1's content.html.

--=20
paavo.

 "joskus voi t=E4=E4 meno k=E4yd=E4 ahdistavaksi
  kun on t=E4=E4ll=E4 muodostunut tavaksi
  muuttaa jokaisen el=E4m=E4n arvo rahaksi"