app/django/utils/thread_support.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Thu, 23 Oct 2008 11:20:35 +0000
changeset 413 ec1b590418df
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Rename Host list templates from group_<something> to host_<something> and move then to soc/host/list folder. Update affected files with new paths. Patch by: Pawel Solyga Review 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"