[Zope] Acquisition: crazy idea

Paul Winkler pw_lists@slinkp.com
Sun, 27 Oct 2002 11:04:27 -0800


On Sun, Oct 27, 2002 at 06:51:05PM +0100, Dieter Maurer wrote:
> 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.

That seems sensible.

--PW

Paul Winkler
http://www.slinkp.com
"Welcome to Muppet Labs, where the future is made - today!"