示例#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
    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)