Beispiel #1
0
def main():
    print('Process the files in: ')
    submit_list, fail_list = get_submit_list()
    print('\nSubmit list: ' + str(len(submit_list)))
    print_list(submit_list)
    print('\nFail list: ' + str(len(fail_list)))
    print_list(fail_list)
    run = input('\nInput Y to begin submit now: ')
    if run == 'Y':
        print('\nBegin submit: ')
        url, username, password = get_tutor_info()
        course_id, homework_id = get_submit_info()
        submitter = Submitter(url, username, password, course_id, homework_id,
                              submit_list)
        submitter.add_single_task_callback(single_task_finished)
        submitter.start()
        submitter.clean()
Beispiel #2
0
from exploiter import Exploiter
from webservice import WebService
from submitter import Submitter
from frontend import Frontend
import signal
import logging.config

if __name__ == '__main__':
    logging.config.fileConfig(fname='log.conf')
    logger_exploiter = logging.getLogger('exploiter')
    logger_submitter = logging.getLogger('submitter')
    logger_webservice = logging.getLogger('webservice')

    WebService.start(logger_webservice)
    Exploiter.start(logger_exploiter)
    Submitter.start(logger_submitter)
    Frontend.start()

    signal.pause()