diff pylons_app/lib/timerproxy.py @ 504:298546182b41

more test suites on login, fixed strange detached instance bug found during in tests. on __repr__ function fixed timerproxy query formatting
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 05 Sep 2010 23:40:08 +0200
parents 5ba66bb4ca95
children a5a17000e45b
line wrap: on
line diff
--- a/pylons_app/lib/timerproxy.py	Sun Sep 05 18:07:37 2010 +0200
+++ b/pylons_app/lib/timerproxy.py	Sun Sep 05 23:40:08 2010 +0200
@@ -22,6 +22,7 @@
     sql = sql.replace('\n', '')
     sql = one_space_trim(sql)
     sql = sql\
+        .replace(',',',\n\t')\
         .replace('SELECT', '\n\tSELECT \n\t')\
         .replace('UPDATE', '\n\tUPDATE \n\t')\
         .replace('DELETE', '\n\tDELETE \n\t')\