Here is a trick I use to pass (and eval) raw HTML code to DataGrid:
mydatagrid.kid:
<tr py:for="i, row in enumerate(value)" class="${i%2 and 'odd' or
'even'}">
<div py:for="col in columns" py:strip="True">
<?python
text = col.get_field(row)
if col.get_option('html', False):
text = XML(text)
?>
<td class="${col.name}_column">${text}</td>
</div>
</tr>
Max.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---