From 1c6547d3c08615cfa3e2e68e514f199f38c5c97f Mon Sep 17 00:00:00 2001 From: wirawan Date: Fri, 28 May 2010 18:46:16 +0000 Subject: [PATCH] * Added default debug level. --- db/file_db.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/db/file_db.py b/db/file_db.py index 9175028..aaa5db5 100644 --- a/db/file_db.py +++ b/db/file_db.py @@ -1,6 +1,6 @@ -# $Id: file_db.py,v 1.3 2010-02-08 20:00:14 wirawan Exp $ +# $Id: file_db.py,v 1.4 2010-05-28 18:46:16 wirawan Exp $ # -# wpylib.db.filedb module +# wpylib.db.file_db module # Created: 20100205 # Wirawan Purwanto # @@ -17,6 +17,8 @@ try: except: import pysqlite2.dbapi2 as sqlite3 +default_debug_level = 0 + class file_rec(tuple): pass @@ -53,7 +55,7 @@ class file_table(object): self.sql_params = { 'table_name': table_name, } - self.debug = 1 + self.debug = default_debug_level create_sql = """\ CREATE TABLE IF NOT EXISTS '%(table_name)s' (