[Zope3-checkins] CVS: Zope3/src/zope/component - factory.py:1.12
Jim Fulton
jim at zope.com
Mon Apr 5 15:43:44 EDT 2004
Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv13163/src/zope/component
Modified Files:
factory.py
Log Message:
Changed the hack for non-classes to use a TypeError. This needs to be
cleared up eventually by allowing implementation declarations for non
classes.
=== Zope3/src/zope/component/factory.py 1.11 => 1.12 ===
--- Zope3/src/zope/component/factory.py:1.11 Tue Mar 9 19:58:44 2004
+++ Zope3/src/zope/component/factory.py Mon Apr 5 15:43:43 2004
@@ -37,5 +37,7 @@
def getInterfaces(self):
try:
return implementedBy(self._callable)
- except AttributeError:
+ except TypeError:
+ # XXX This is a hack
+ # We really only support classes
return implementedBy(object())
More information about the Zope3-Checkins
mailing list