app/django/utils/thread_support.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Sat, 24 Jan 2009 10:59:28 +0000
changeset 947 67b41a13587a
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Rename soc/request/list/row.html template column class "to" to "for" since the name changed in header template. 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"