[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/utility/vocabulary.py
Keep the interface around, so we can use it.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Oct 12 03:49:56 EDT 2004
Log message for revision 27980:
Keep the interface around, so we can use it.
Changed:
U Zope3/trunk/src/zope/app/utility/vocabulary.py
-=-
Modified: Zope3/trunk/src/zope/app/utility/vocabulary.py
===================================================================
--- Zope3/trunk/src/zope/app/utility/vocabulary.py 2004-10-12 07:35:19 UTC (rev 27979)
+++ Zope3/trunk/src/zope/app/utility/vocabulary.py 2004-10-12 07:49:54 UTC (rev 27980)
@@ -180,6 +180,7 @@
nameOnly = True
if isinstance(interface, (str, unicode)):
interface = zapi.getUtility(IInterface, interface)
+ self.interface = interface
utils = zapi.getUtilitiesFor(interface, context)
self._terms = dict([(name, UtilityTerm(nameOnly and name or util, name))
for name, util in utils])
More information about the Zope3-Checkins
mailing list