[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - vocabularywidget.py:1.22
Fred L. Drake, Jr.
fred@zope.com
Fri, 30 May 2003 14:53:22 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv20887
Modified Files:
vocabularywidget.py
Log Message:
Update a comment: explain why textForValue() returns the token and not
the value.
=== Zope3/src/zope/app/browser/form/vocabularywidget.py 1.21 => 1.22 ===
--- Zope3/src/zope/app/browser/form/vocabularywidget.py:1.21 Fri May 30 14:44:00 2003
+++ Zope3/src/zope/app/browser/form/vocabularywidget.py Fri May 30 14:53:19 2003
@@ -103,8 +103,10 @@
"""Helper class for vocabulary and vocabulary-query widgets."""
def textForValue(self, term):
- # Extract the value from the term. This can be overridden to
- # support more complex term objects.
+ # Extract a string from the term. This can be overridden to
+ # support more complex term objects. The token is returned
+ # here since it's the only thing known to be a string, or
+ # str()able.
return term.token
def mkselectionlist(self, type, info, name):