app/django/utils/thread_support.py
author Lennard de Rijk <ljvderijk@gmail.com>
Mon, 13 Jul 2009 21:56:01 +0200 (2009-07-13)
changeset 2634 6e71545533b6
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Added failed_evaluations property to StudentProject model. This is used to store GradingRecords which state a fail for this project. It's a list because manual changes in GradingRecords might force multiple GradingRecords to state a fail. Also it needs to be clear which GradingRecords have been processed and with which grade_decision.
"""
Code used in a couple of places to work with the current thread's environment.
Current users include i18n and request prefix handling.
"""

try:
    import threading
    currentThread = threading.currentThread
except ImportError:
    def currentThread():
        return "no threading"