Hi I would like to wrap a thread around objectstore.commit() I could not get it to work.

What am I doing wrong?

class Controller(Object):

threads = []
def commit_(self):
t = CommitChanges(objectstore)
self.threads.append(t)

class CommitChanges(Thread):
def __init__ (self, objectstore):
Thread.__init__(self)
self.description = "Updating Database"
self.objectstore = objectstore
self.start()

def run(self):
self.objectstore.commit()

Reply via email to