[Zope3-checkins] Re: SVN: Zope3/branches/jim-adapter/src/zope/ Changed the way ILayer was deprecated to avoid spurious warning from

Philipp von Weitershausen philipp at weitershausen.de
Sun Apr 23 12:28:22 EDT 2006


Jim Fulton wrote:
> Philipp von Weitershausen wrote:
>> Jim Fulton wrote:
> ...
>>>   Why isn't LayerField deprecated?
>>
>>
>> Because we need it for BBB for the time being. You currently still can 
>> define layers in ZCML without having a real interface backing it up. 
>> This is deprecated, of course, but it's still possible for BBB. ZCML 
>> needs to support these dynamically created layers, hence LayerField 
>> needs to stick around. It will be removed and replaced by a simple 
>> GlobalInterface field in Zope 3.5.
> 
> I wasn't asking why it was there.  I was asking why it wasn't marked as
> deprecated.  Shouldn't it be marked as deprecated so that people get
> deprecation warnings if they try to use it?

Possibly. The question is whether it's part of some official API. I 
guess you're suggesting it is.

I'll make sure it generates deprecation warnings.

Philipp



More information about the Zope3-Checkins mailing list