app/django/utils/thread_support.py
author Todd Larsen <tlarsen@google.com>
Sat, 22 Nov 2008 09:49:13 +0000
changeset 549 00a9ce3dc082
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Fix some broken help_text bubbles (they are truncated or not displayed if they contain " double quotation marks). Add notice text (sort of ugly at the moment, Dmitri? :) explaining the "Public name" and "Link ID" fields in great detail. This patch is in preparation for making "Link ID" immutable for Users in a subsequent patch. Patch by: Todd Larsen

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