app/django/utils/thread_support.py
author Chen Lunpeng <forever.clp@gmail.com>
Thu, 16 Oct 2008 09:14:26 +0000
changeset 353 de3c27dbf5cd
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Log Fix not working after click the "Site Settings" in home page. templete wasn't updated when soc/app/soc/logic/site/map.py was update. Patch by: Chen Lunpeng 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"