[Zope3-dev] Redundant ZCML directives

Philipp von Weitershausen philipp at weitershausen.de
Thu Jul 8 12:54:30 EDT 2004


Jim Fulton wrote:

> Philipp von Weitershausen wrote:
> 
>> Hello there,
>>
>> I've found that the
>>
>> - browser:layer and
>> - browser:skin
>>
>> directives are totally equivalent to
>>
>> - zope:layer and
>> - zope:skin.
>>
>> Their directive schemas are absolutely equivalent and their handlers 
>> are even the same! This is an unnecessary redundancy and contradicts 
>> the rule that there should only be one obvious way to do things.
> 
> 
> Yes, but see:
> http://dev.zope.org/Zope3/ImplementViewsAsAdapters
> 
> Spcifically, note that layers and skins will become request-type specific,
> so we will be getting rid of the zope:layer and zope:skin directives.

Hmmm, right. I forgot about that proposal which I approved of even.

> I object. :)
> 
> I suggest you remove zope:layer and zope:skin instead. This will
> avoid the backward compat problem when we implement
> ImplementViewsAsAdapters.

Ok, makes sense.

Philipp



More information about the Zope3-dev mailing list