Below is the file 'Store.py' from this revision. You can also download the file.

#!/usr/bin/env python

#
# Abstraction around shelves / data stores used by Fourstar
#
# provides an abstraction to arbitary store backend
#

# Store as a shelf


import sqlite3

class Store:
	def __init__(self):
		self.file = None
		self.db = None
		self.cursor = None
		self.store = None
		pass

	def create(self,file):
		pass

	def connect(self,file):
		pass

	def check_schema(self):
		pass

	def status(self):
		pass

#


# is there any reason why this needs to abstract anything other than
# SQL?
#
# command, arg list
#  select blah from foo where thing=%s