[Twisted-Python] Re: Notes on switching twisted to new zope.interface code

Alex Levy mesozoic at polynode.com
Mon Jul 19 01:26:42 EDT 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