27 Oct
2002
27 Oct
'02
5:51 p.m.
Paul Winkler writes:
... What if there were an (optional?) extension to the acquisition rules such that, if the current acquisition process finishes and no object is found, we try to to replace the aq_parent with the next object of the same id found further up the acquisition chain? And then do this recursively back up the acquisition chain until finally we run out of places to look?
So instead of saying "I found images/ but it doesn't contain bar.gif', zope would say "hmm, I didn't find what I wanted, there's no bar.gif in here, let me go looking for another images/ and try again." I would not put this into the acquisition rules, but provide a specialized folder (you would use for your "images") that does something like this.
Dieter