[qmtest] [Patch] qmtest crashes for integer attribute values
Vladimir Prus
ghost at cs.msu.su
Wed Feb 6 08:42:22 UTC 2002
> - <td><dtml-var
> expr="web.format_structured_text(result[annotation])"></td>
+ <td><dtml-var
> expr="web.format_structured_text(`result[annotation]`)"></td>
> Actually, the use of `` makes strings looks a little bit strange (
> "'string'" ), but unfortunately, 'str' can't be used inside expression.
> Maybe, dtml handling is better changed to allow 'str', I'm not sure.
A better way is to replace
result[annotation]
with
'%s' % (result[annotation],)
This will produce nicer output.
- Volodya
More information about the qmtest
mailing list