[Twisted-Python] Re: Notes on switching twisted to new zope.interface code
Alex Levy
mesozoic at polynode.com
Sun Jul 18 23:26:42 MDT 2004
On Sun, Jul 18, 2004 at 10:39:24PM -0400, Itamar Shtull-Trauring wrote:
> 1. Switch classes from:
>
> class C:
> __implements__ = IFoo,
>
> to:
>
> class C:
> zope.interface.implements(IFoo)
What about subclasses?
class C:
__implements__ = IFoo,
class D(C):
__implements__ = (C.__implements__, IFoo)
Do Zope interfaces need anything special to handle this?
--
Alex Levy
WWW: http://mesozoic.geecs.org/
"Never let your sense of morals prevent you from doing what is right."
-- Salvor Hardin, Isaac Asimov's _Foundation_
More information about the Twisted-Python
mailing list