[Zope3-checkins] CVS: Zope3/src/zope/component - factory.py:1.10
interfaces.py:1.24
Bjorn Tillenius
bjoti777 at student.liu.se
Tue Mar 9 10:28:02 EST 2004
Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv11562/src/zope/component
Modified Files:
factory.py interfaces.py
Log Message:
By making Factory.getInterfaces() return a list, a few things got broken.
Changed it back to the way ClassFactory.getInterfaces() worked.
=== Zope3/src/zope/component/factory.py 1.9 => 1.10 ===
--- Zope3/src/zope/component/factory.py:1.9 Tue Mar 9 07:39:54 2004
+++ Zope3/src/zope/component/factory.py Tue Mar 9 10:27:31 2004
@@ -35,7 +35,4 @@
return self._callable(*args, **kw)
def getInterfaces(self):
- try:
- return list(implementedBy(self._callable))
- except AttributeError:
- return []
+ return implementedBy(self._callable)
=== Zope3/src/zope/component/interfaces.py 1.23 => 1.24 ===
--- Zope3/src/zope/component/interfaces.py:1.23 Tue Mar 9 07:40:59 2004
+++ Zope3/src/zope/component/interfaces.py Tue Mar 9 10:27:31 2004
@@ -307,8 +307,8 @@
def getInterfaces():
"""Get the interfaces implemented by the factory
- Return the interface(s) that objects created by this factory
- will implement.
+ Return the interface(s), as an instance of Implements, that objects
+ created by this factory will implement.
"""
More information about the Zope3-Checkins
mailing list