[Zope3-dev] defining interfaces

Garrett Smith garrett@mojave-corp.com
Fri, 4 Apr 2003 19:04:17 -0600


There appears to be several ways in which interfaces are defined in the
Zope3 package. What is the recommended approach for people creating
simple products and/or complex frameworks?

- Create one file per interface, e.g. IFoo.py, located alongside the
implementations?

- Define interfaces in __init__.py?

- Create an "interfaces" directory where files of the same name contain
respective interface definitions?

When reading the Zope3 source files, is there anything to be inteferred
by which of the above ways an interface is defined?

Garrett Smith
Mojave Corporation