[Zope-dev] A summary of "Interfaces vs ZCA concepts"
Leonardo Rochael Almeida
leorochael at gmail.com
Thu Dec 17 12:34:12 EST 2009
We've been through this option recently already. It has been quickly
shot down by those who want interfaces to get the new behaviour
immediately available in existing interfaces, instead of having to
rewrite already existing interfaces to support the new API.
Painful memories of a time when we had 2 interface implementations
come to mind. Though in this case, with z.c.Interface extending
z.i.Interface, we probably wouldn't have so much backward
compatibility issues as we had before: the new API would just not be
available in non migrated code, and old code could treat
z.c.Interfaces just like z.i.Interfaces.
On Thu, Dec 17, 2009 at 15:07, Gary Poster <gary.poster at gmail.com> wrote:
> Yeah, I was thinking that too, as a "I don't have time to think hard about this" little daydream.
>
> Actually I believe you would want to subclass InterfaceClass and make your new zope.component.Interface an instance of the new InterfaceClass and specify zope.interface's Interface as something it extends.
>
> Then packages in the Zope world would start to use that Interface, I'd guess.
>
> I don't know how I feel about it.
>
> Gary
>
>
> On Dec 17, 2009, at 11:51 AM, Chris McDonough wrote:
>
>> I'll throw out the obvious...
>>
>> Why not subclass Interface in zope.component and make the required API
>> additions there? If it were anybody but us thinking about doing this, they'd
>> probably just subclass.
>>
>> - C
>>
>> Martijn Faassen wrote:
>>> Wichert Akkerman wrote:
>>> [knip]
>>>> Perhapse LookupError should be a subclass of TypeError.
>>>
>>> It's a Python built-in. :)
>>>
>>> Regards,
>>>
>>> Martijn
>>>
>>> _______________________________________________
>>> Zope-Dev maillist - Zope-Dev at zope.org
>>> https://mail.zope.org/mailman/listinfo/zope-dev
>>> ** No cross posts or HTML encoding! **
>>> (Related lists -
>>> https://mail.zope.org/mailman/listinfo/zope-announce
>>> https://mail.zope.org/mailman/listinfo/zope )
>>>
>>
>> _______________________________________________
>> Zope-Dev maillist - Zope-Dev at zope.org
>> https://mail.zope.org/mailman/listinfo/zope-dev
>> ** No cross posts or HTML encoding! **
>> (Related lists -
>> https://mail.zope.org/mailman/listinfo/zope-announce
>> https://mail.zope.org/mailman/listinfo/zope )
>
> _______________________________________________
> Zope-Dev maillist - Zope-Dev at zope.org
> https://mail.zope.org/mailman/listinfo/zope-dev
> ** No cross posts or HTML encoding! **
> (Related lists -
> https://mail.zope.org/mailman/listinfo/zope-announce
> https://mail.zope.org/mailman/listinfo/zope )
>
More information about the Zope-Dev
mailing list