changeset 365:84070815e44e

now displays images in table
author catherine@cordelia
date Fri, 03 Jul 2009 09:23:42 -0400
parents ea6d35cb6c73
children 39a88f53a03a
files sqlpython/output_templates.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sqlpython/output_templates.py	Fri Jul 03 07:32:40 2009 -0400
+++ b/sqlpython/output_templates.py	Fri Jul 03 09:23:42 2009 -0400
@@ -41,7 +41,7 @@
       </tr>
       <tr py:for="row in rows">
         <td py:for="(colname, itm) in zip(colnames, row)" py:attrs="{'headers':'header_' + colname.lower()}">
-          <span py:replace="(hasattr(itm, 'html') and itm.html()) or str(itm)">Value</span>
+          <span py:replace="(hasattr(itm, 'html') and Markup(itm.html())) or str(itm)">Value</span>
         </td>
       </tr>
     </table>