# HG changeset patch # User catherine@dellzilla # Date 1237324998 14400 # Node ID 95195ec92c6c0a9cb56d6923b683fbd0175d9822 # Parent 342e96de6de6730b312fe9023e8723e87f93a906 comma separation in genshi is hard diff -r 342e96de6de6 -r 95195ec92c6c sqlpython/output_templates.py --- a/sqlpython/output_templates.py Mon Mar 16 23:30:41 2009 -0400 +++ b/sqlpython/output_templates.py Tue Mar 17 17:23:18 2009 -0400 @@ -15,12 +15,13 @@ """), '\\j': genshi.template.NewTextTemplate(""" -{"${tblname}_resultset: [{% for row in rows %} - "${tblname}": {{% for (colname, itm) in zip(colnames, row) %} - "${colname.lower()}": "${itm}",{% end %} }, - {% end %}] +{"${tblname}_resultset": [{% for row in rows %} + {${','.join('"%s": "%s"\\n ' % (colname, itm) for (colname, itm) in zip(colnames, row))} + } + {% end %}\ + ] }"""), - + '\\h': genshi.template.MarkupTemplate("""