app/django/utils/thread_support.py
author Lennard de Rijk <ljvderijk@gmail.com>
Sat, 24 Jan 2009 16:39:34 +0000
changeset 962 606871fda11c
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Added request creation and processing to role.py. This is used if you want to request to become a certain role for a group. For instance becoming a club member. The process request view will also be used to cancel outstanding invites might this be necessary. Patch by: Lennard de Rijk Reviewed 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"