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