[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - vocabularywidget.py:1.21
Casey Duncan
casey@zope.com
Fri, 30 May 2003 14:44:01 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv19290
Modified Files:
vocabularywidget.py
Log Message:
Widget view textForValue should return token not value
=== Zope3/src/zope/app/browser/form/vocabularywidget.py 1.20 => 1.21 ===
--- Zope3/src/zope/app/browser/form/vocabularywidget.py:1.20 Fri May 30 12:10:31 2003
+++ Zope3/src/zope/app/browser/form/vocabularywidget.py Fri May 30 14:44:00 2003
@@ -105,7 +105,7 @@
def textForValue(self, term):
# Extract the value from the term. This can be overridden to
# support more complex term objects.
- return term.value
+ return term.token
def mkselectionlist(self, type, info, name):
L = ["<table>\n"]