[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - IFactory.py:1.1.2.1
Fred Drake Jr
fdrake@acm.org
Tue, 20 Nov 2001 14:58:36 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv28990
Added Files:
Tag: Zope-3x-branch
IFactory.py
Log Message:
Basic interface for factory objects.
=== Added File Zope3/lib/python/Zope/ComponentArchitecture/IFactory.py ===
"""Interface for Factory objects."""
from Interface import Base
class IFactory(Base):
def __init__(klass):
"""Initialize the factory with the class it creates instances of."""
def __call__():
"""Return an instance of the objects we're a factory for."""