def __init__(self): submission_store.add_create_callback(self.create_submission) submission_store.add_update_callback(self.update_submission) submission_store.add_delete_callback(self.delete_submission) subchange_store.add_create_callback(self.create_subchange) subchange_store.add_update_callback(self.update_subchange) subchange_store.add_delete_callback(self.delete_subchange) self._scores = dict() self._callbacks = list()
def __init__(self): submission_store.add_create_callback(self.create_submission) submission_store.add_update_callback(self.update_submission) submission_store.add_delete_callback(self.delete_submission) subchange_store.add_create_callback(self.create_subchange) subchange_store.add_update_callback(self.update_subchange) subchange_store.add_delete_callback(self.delete_subchange) self._scores = dict() self._callbacks = list() for key, value in submission_store._store.iteritems(): self.create_submission(key, value) for key, value in subchange_store._store.iteritems(): self.create_subchange(key, value)