[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
Re: [qmtest] [Patch] qmtest crashes for integer attribute values
- To: qmtest@xxxxxxxxxxxxxxxx
- Subject: Re: [qmtest] [Patch] qmtest crashes for integer attribute values
- From: Vladimir Prus <ghost@xxxxxxxxx>
- Date: Wed, 6 Feb 2002 11:42:22 +0300
> - <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
|