[Zope3-dev] "Sub interface"

Martijn Faassen faassen at infrae.com
Mon Mar 1 05:17:13 EST 2004


Terry Hancock wrote:

>I gotta say though, I recoil at the distinction between "schemas"
>and "interfaces".  IMHO, they're still "interfaces" -- the idea that
>attributes shouldn't be part of an interface seems unnatural
>to me, like some idea grafted from another language.   I approve
>of the fact that they're integrated in Zope 3, though.  I guess I
>can lie with it as a synonym.
>  
>

Luckily for you, schemas in Zope 3 happen to be just normal interfaces. 
There is no separate schema class; a schema is simply an interface with 
fields on it. So they're basically synonyms, emphasizing one aspect or 
the other.

Regards,

Martijn




More information about the Zope3-dev mailing list