[Zope3-checkins] CVS: Zope3/src/zope/app/renderer - vocabulary.py:1.7

Jim Fulton jim at zope.com
Sun Apr 11 14:16:26 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/renderer
In directory cvs.zope.org:/tmp/cvs-serv19096/src/zope/app/renderer

Modified Files:
	vocabulary.py 
Log Message:
getUtilitiesFor now returns an iteratable.


=== Zope3/src/zope/app/renderer/vocabulary.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/renderer/vocabulary.py:1.6	Wed Mar 17 16:56:39 2004
+++ Zope3/src/zope/app/renderer/vocabulary.py	Sun Apr 11 14:16:26 2004
@@ -41,7 +41,7 @@
     implements(IVocabulary, IVocabularyTokenized)
 
     def __init__(self, context):
-        self.types = zapi.getFactoriesFor(None, ISource)
+        self.types = list(zapi.getFactoriesFor(None, ISource))
 
     def __contains__(self, value):
         return value in [name for name, fact in self.types]




More information about the Zope3-Checkins mailing list