Update of /cvsroot/webware/Webware/WebUtils
In directory sc8-pr-cvs1:/tmp/cvs-serv4445/WebUtils
Modified Files:
Funcs.py
Log Message:
Tweaking the exception-formatting code so that dictionaries whose keys
are not strings can be formatted.
Index: Funcs.py
===================================================================
RCS file: /cvsroot/webware/Webware/WebUtils/Funcs.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Funcs.py 16 Jan 2003 07:45:21 -0000 1.6
--- Funcs.py 18 Nov 2003 16:16:35 -0000 1.7
***************
*** 78,82 ****
if maxValueLength and len(value) > maxValueLength:
value = value[:maxValueLength] + '...'
! html.append('<tr bgcolor=#F0F0F0> <td> %s </td> <td> %s </td> </tr>\n' % (htmlEncode(key), htmlEncode(value)))
html.append('</table>')
return string.join(html, '')
--- 78,82 ----
if maxValueLength and len(value) > maxValueLength:
value = value[:maxValueLength] + '...'
! html.append('<tr bgcolor=#F0F0F0> <td> %s </td> <td> %s </td> </tr>\n' % (htmlEncode(str(key)), htmlEncode(value)))
html.append('</table>')
return string.join(html, '')
|