app/django/utils/thread_support.py
author Daniel Diniz <ajaksu@gmail.com>
Tue, 23 Jun 2009 20:54:03 +0200
changeset 2420 645f4de26f99
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Patch that adds the JS and CSS files for surveys. The only update is in app/jquery/jquery-ui.core.js, from a non-release (added by Paweł for the date picker) to a slightly updated released version. Reviewed by: Lennard de Rijk, Mario Ferraro Patch by: Daniel Diniz, James Levy

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