[Zope3-dev] Re: View lookup changes in Zope 3.2?

Martijn Faassen faassen at infrae.com
Wed Dec 14 04:46:59 EST 2005


Jim Fulton wrote:
> Jeff Shell wrote:

>> I understand why this is happening, but it's (obviously) not what I
>> want to have happen. I want MY skin layer's declaration of
>> 'contents.html' to win out. It actually works for all container types,
>> so maybe I need to declare it for a root Zope container interface for
>> my layer?
> 
> I don't know enough about the relationshipd between your content
> interfaces, to comment directly, but I will note that the intent
> was that content interface would have precedence over skin.  This
> was not the case before due to a bug in  multi-adapter lookup.

While I probably don't understand some details, this thread rather 
worries me.

Imagine I'm writing my own custom skin 'IFoo', that has a page directive 
for the page 'index' for Zope's 'IContainer' (say), in a layer that's in 
the skin 'IFoo'. Now someone whose skin setting is set to IFoo is 
looking at IFolder, which is an IContainer. Zope registers a 'index' 
page specific for IFolder.

Would now Zope's more specific registration win? How would I accomplish 
making a skin that takes care about overriding *all* IContainers without 
having to explicitly register for all sub-interfaces? Or am I wrong in 
even imagining this would be desirable?

Regards,

Martijn


More information about the Zope3-dev mailing list