[Erp5-report] r25892 - /erp5/trunk/products/ZSQLCatalog/SQLCatalog.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 5 16:27:30 CET 2009
Author: vincent
Date: Thu Mar 5 16:27:30 2009
New Revision: 25892
URL: http://svn.erp5.org?rev=25892&view=rev
Log:
Remove more debugging logs.
Modified:
erp5/trunk/products/ZSQLCatalog/SQLCatalog.py
Modified: erp5/trunk/products/ZSQLCatalog/SQLCatalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/SQLCatalog.py?rev=25892&r1=25891&r2=25892&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/SQLCatalog.py [utf8] (original)
+++ erp5/trunk/products/ZSQLCatalog/SQLCatalog.py [utf8] Thu Mar 5 16:27:30 2009
@@ -231,8 +231,6 @@
self._register()
tid = get_ident()
self.temporary_buffer.setdefault(tid, []).extend(iterable)
-
-DEBUG = False
related_key_definition_cache = {}
@@ -2029,8 +2027,6 @@
# Parsing failed, create a query from the bare string.
result = self.buildSingleQuery(key, value)
else:
- if DEBUG:
- LOG('SQLCatalog', 0, 'Building queries from abstract syntax tree: %r' % (abstract_syntax_tree, ))
result = self.buildQueryFromAbstractSyntaxTreeNode(abstract_syntax_tree, key)
elif isinstance(value, dict):
# Dictionnary: might contain the search key to use.
@@ -2105,10 +2101,6 @@
ignore_empty_string=1, only_group_columns=False,
limit=None, extra_column_list=None,
**kw):
-# from traceback import format_list, extract_stack
-# LOG('buildSQLQuery', 0, ''.join(format_list(extract_stack())))
- if DEBUG:
- LOG('buildSQLQuery', 0, repr(kw))
group_by_list = kw.pop('group_by_list', kw.pop('group_by', kw.pop('group_by_expression', None)))
if isinstance(group_by_list, basestring):
group_by_list = [x.strip() for x in group_by_list.split(',')]
@@ -2169,8 +2161,6 @@
extra_column_list=extra_column_list,
from_expression=from_expression)
result = query.asSQLExpression(self, only_group_columns).asSQLExpressionDict()
- if DEBUG:
- LOG('buildSQLQuery', 0, repr(result))
return result
# Compatibililty SQL Sql
@@ -2248,8 +2238,6 @@
def queryResults(self, sql_method, REQUEST=None, src__=0, build_sql_query_method=None, **kw):
sql_kw = self._queryResults(REQUEST=REQUEST, build_sql_query_method=build_sql_query_method, **kw)
- if DEBUG and not src__:
- LOG('queryResults', 0, sql_method(src__=1, **sql_kw))
return sql_method(src__=src__, **sql_kw)
def searchResults(self, REQUEST=None, **kw):
More information about the Erp5-report
mailing list