class mod: result="123" def __init__(self, id, myhost): import mod.sqlite.index self.sql=mod.sqlite.index.sqlite() #self.sql.install("users", "json") self.sql.newtable(''' CREATE TABLE IF NOT EXISTS settings ( id INTEGER, json TEXT NOT NULL, site TEXT NOT NULL, mod TEXT NOT NULL, PRIMARY KEY(id AUTOINCREMENT)); ''') self.getPage(id, myhost) def getPage(self, id, myhost): #self.sql.cur.execute("SELECT * FROM content WHERE id=" + id + " AND type='page' AND site='" + myhost + "' LIMIT 1") #result = self.sql.cur.fetchone() mod.result="main_mod"