Stephan Richter wrote:
> On Wednesday 07 December 2005 16:33, Dominik Huber wrote:
> > Phillip's Proposal:
> > Furthermore, I propose to remove the |IDefaultLayer| interface. We've
> > been using the |default| layer as a connotation of "always being
> > available unless overridden by a more specific layer." However, this
> > does not apply all the time: When the |default| layer is not included in
> > a specific skin, nothing from the |default| layer will be found even
> > though the ZCML statements suggest that it would always be available. I
> > therefore propose to make the |default| skin layer an alias for
> > |IBrowserRequest|. Anything registered for |default| will obviously
> > always be available then, no matter what your skin layer looks like.
> Oops, I missed that part. -1 on it, like Dominik. I originally did not have an
> IDefaultLayer when I converted views to adapters and it caused a lot of
> headaches for people. It was thus added and we all agreed it was needed.
Very well, I wasn't aware of the fact that it was commonly undestood that
was needed. The original proposal
certainly doesn't mention it. I've now found the relevant check-in where it was
benefits are stated there, but the actual reasoning is in CHANGES.txt where it
"[IDefaultLayer] allows developers to create skins that do not include the
layer." I guess the proposal should have been updated with this info and a
saying that there actually *are* developers with the use case of creating skins
default layer. At least it would have made things clearer to me from the
Anyways, I overhauled the proposal now to include lots of useful suggestions
Martijn, and Dominik. Thanks for the input so far, please revise it and let me
you see any other issues.
> Your connotation assertion here is incorrect. The default layer stands for:
> "If the browser directive did not specify a layer, use the default layer." By
> default, the Basic and thus Rotterdam skin incorporate that layer, but others
> like Dominik and Garrett do not want to include that layer.
Right. I wonder if we should make the 'layer' argument mandatory then. Right
now we have
the connotation "You can leave the layer argument out in which case Zope will
arbitrary layer that might or might not be in your skins and is boldly called
This message was sent using IMP, the Internet Messaging Program.
Zope3-dev mailing list