Re: [Zope3-Users] Interface Use Cases

2009-01-28 Thread Thierry Florac
Le mercredi 28 janvier 2009 à 10:39 -0200, Tim Cook a écrit : > All, > > I have many places where I have used this in a schema. > > class IAbc > attr1 = Object(schema=IAbc) > > class Abc(object): > """does some stuff but is usually an abstract class""" > implements (IAbc) > > Where IAbc is actu

[Zope3-Users] Interface Use Cases

2009-01-28 Thread Tim Cook
All, I have many places where I have used this in a schema. class IAbc attr1 = Object(schema=IAbc) class Abc(object): """does some stuff but is usually an abstract class""" implements (IAbc) Where IAbc is actually meant to represent that any one of (let's say) three different sub-classes of Abc