[Zope3-checkins] SVN: Zope3/trunk/src/zope/schema/interfaces.py clarify getTermByToken()

Fred L. Drake, Jr. fdrake at gmail.com
Tue Sep 14 11:21:23 EDT 2004


Log message for revision 27518:
  clarify getTermByToken()


Changed:
  U   Zope3/trunk/src/zope/schema/interfaces.py


-=-
Modified: Zope3/trunk/src/zope/schema/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/schema/interfaces.py	2004-09-14 14:51:58 UTC (rev 27517)
+++ Zope3/trunk/src/zope/schema/interfaces.py	2004-09-14 15:21:22 UTC (rev 27518)
@@ -535,9 +535,13 @@
     """
 
     def getTermByToken(token):
-        """Return an ITokenizedTerm for the passed-in token."""
+        """Return an ITokenizedTerm for the passed-in token.
 
+        If `token` is not represented in the vocabulary, `LookupError`
+        is raised.
+        """
 
+
 class IVocabularyRegistry(Interface):
     """Registry that provides IBaseVocabulary objects for specific fields.
     """



More information about the Zope3-Checkins mailing list