[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - widget.py:1.42
Adam Summers
adams@modernnoise.com
Tue, 15 Jul 2003 02:07:28 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv7663/src/zope/app/browser/form
Modified Files:
widget.py
Log Message:
Changed str() calls to unicode() calls to allow for non-ascii characters
schema-defined object fields
=== Zope3/src/zope/app/browser/form/widget.py 1.41 => 1.42 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.41 Mon Jul 14 20:58:18 2003
+++ Zope3/src/zope/app/browser/form/widget.py Tue Jul 15 02:06:53 2003
@@ -1342,7 +1342,7 @@
for key, value in items:
if value == None:
value = key
- attr_list.append('%s="%s"' % (key, str(value)))
+ attr_list.append('%s="%s"' % (key, unicode(value)))
attr_str = " ".join(attr_list)
return "<%s %s %s" % (tag, attr_str, extra)