Line
Link Here
|
0 |
-- a/src/lib/backends/sqlite_db.py 2009-10-13 11:59:44.000000000 -0300 |
0 |
++ b/src/lib/backends/sqlite_db.py 2009-10-13 11:59:57.000000000 -0300 |
Lines 53-58
Link Here
|
53 |
if not os.path.exists(os.path.split(self.filename)[0]): |
53 |
if not os.path.exists(os.path.split(self.filename)[0]): |
54 |
os.makedirs(os.path.split(self.filename)[0]) |
54 |
os.makedirs(os.path.split(self.filename)[0]) |
55 |
self.connection = sqlite.connect(self.filename)#,isolation_level="IMMEDIATE") |
55 |
self.connection = sqlite.connect(self.filename)#,isolation_level="IMMEDIATE") |
|
|
56 |
self.connection.text_factory = str |
56 |
self.cursor = self.connection.cursor() |
57 |
self.cursor = self.connection.cursor() |
57 |
# Create regexp function, based on example at |
58 |
# Create regexp function, based on example at |
58 |
# http://lists.initd.org/pipermail/pysqlite/2005-November/000253.html |
59 |
# http://lists.initd.org/pipermail/pysqlite/2005-November/000253.html |