[Zope3-checkins] CVS: Zope3/src/zope/component - utility.py:1.5.2.1

Sidnei da Silva sidnei at x3ng.com.br
Tue Aug 12 10:19:37 EDT 2003


Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv22953/src/zope/component

Modified Files:
      Tag: dreamcatcher-ttwschema-branch
	utility.py 
Log Message:
TTWSchema: Work in progress. Made a branch so I can work without disturbing everyone else

=== Zope3/src/zope/component/utility.py 1.5 => 1.5.2.1 ===
--- Zope3/src/zope/component/utility.py:1.5	Wed Aug  6 17:16:51 2003
+++ Zope3/src/zope/component/utility.py	Tue Aug 12 09:19:33 2003
@@ -89,7 +89,8 @@
             for iface, util in self.__utilities[name].getRegisteredMatching():
                 if not util:
                     continue
-                if interface and not iface is interface:
+                if interface and not iface.extends(interface, 0) and \
+                       util is not interface:
                     continue
                 utilities[(name, util)] = None
 




More information about the Zope3-Checkins mailing list