예제 #1
0
파일: Scoring.py 프로젝트: romeorizzi/cms
    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()
예제 #2
0
파일: Scoring.py 프로젝트: akmohtashami/cms
    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()
예제 #3
0
파일: Scoring.py 프로젝트: conor-f/cms
    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)
예제 #4
0
    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)