If somebody had the same problem, the solution is to replace py:content="tg_flash" with py:content="XML(tg_flash)" in master.kid.
Useful. I had a slightly different problem - I needed to display different "classes" of flash message - informational, warnings, errors, or success. To do so I use the following:
<div py:if="value_of('tg_flash', None) and '::' in tg_flash"
py:attrs="class=tg_flash.split('::')[0]" id="flash">
<label>${tg_flash.split('::')[0].capitalize()}:</label>
<div py:content="XML(tg_flash.split('::')[1])">Test important
message.</div>
</div>
<div py:if="value_of('tg_flash', None) and '::' not in tg_flash"
id="flash" class="info">
<label>Information:</label>
<div py:content="XML(tg_flash)">Test important message.</div>
</div>
It'll probably be a bit more elegant in Genshi, what with it having
an "else" structure.
Matthew Bevan, Systems Administrator Top Floor Computer Systems Ltd.
smime.p7s
Description: S/MIME cryptographic signature

