Author: justi9
Date: 2008-04-07 18:02:59 -0400 (Mon, 07 Apr 2008)
New Revision: 1854
Modified:
mgmt/cumin/python/wooly/tables.py
Log:
Minor cleanup
Modified: mgmt/cumin/python/wooly/tables.py
===================================================================
--- mgmt/cumin/python/wooly/tables.py 2008-04-07 22:02:20 UTC (rev 1853)
+++ mgmt/cumin/python/wooly/tables.py 2008-04-07 22:02:59 UTC (rev 1854)
@@ -157,13 +157,8 @@
def render_sql(self, session, *args):
writer = Writer()
self.__sql_tmpl.render(writer, session, *args)
- sql = writer.to_string()
+ return writer.to_string()
- #print "sql -----------------------"
- #print sql
-
- return sql
-
def render_sql_where(self, session, *args):
pass
@@ -178,13 +173,8 @@
def render_count_sql(self, session, *args):
writer = Writer()
self.__count_sql_tmpl.render(writer, session, *args)
- sql = writer.to_string()
+ return writer.to_string()
- #print "sql -----------------------"
- #print sql
-
- return sql
-
def build_sql(self, elems):
writer = Writer()
Show replies by date