blob: 8a248583d615475280e29280d07314dc569c0ce1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from storageBase import storageBase
from itemList import itemList
from pysqlite2 import dbapi2 as sqliteBackend
class sqlite(storageBase):
def __init__(self):
self.con = sqliteBackend.connect(self.getConfigDir() + '/data.sqlite')
def __del__(self):
self.con.close()
def load(self):
return itemList(self)
def notifyChange(self, sender):
print '%s %s' % ('Save changes:', sender.getCreatedAt())
return
|