[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/interface/vocabulary.py
Vocabularies can be iterated over; elements of the iteration
Philipp von Weitershausen
philikon at philikon.de
Sun Sep 12 10:39:47 EDT 2004
Log message for revision 27504:
Vocabularies can be iterated over; elements of the iteration
are terms, so no need to use this private attribute here.
Changed:
U Zope3/trunk/src/zope/app/interface/vocabulary.py
-=-
Modified: Zope3/trunk/src/zope/app/interface/vocabulary.py
===================================================================
--- Zope3/trunk/src/zope/app/interface/vocabulary.py 2004-09-12 14:38:44 UTC (rev 27503)
+++ Zope3/trunk/src/zope/app/interface/vocabulary.py 2004-09-12 14:39:47 UTC (rev 27504)
@@ -42,7 +42,7 @@
>>> vocab = ObjectInterfacesVocabulary(Object())
>>> import pprint
- >>> names = [term.token for term in vocab._terms]
+ >>> names = [term.token for term in vocab]
>>> names.sort()
>>> pprint.pprint(names)
['zope.app.interface.vocabulary.I1',
More information about the Zope3-Checkins
mailing list