app/django/utils/thread_support.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Fri, 20 Mar 2009 14:40:22 +0000
changeset 1953 6bd827320b3d
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Add date postfix to slot-allocator.js file. Update base.html template with path to slot-allocator-090320.js. Patch by: Pawel Solyga Reviewed by: to-be-reviewed

"""
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"