app/django/utils/thread_support.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 28 Aug 2009 12:34:16 +0200
changeset 2823 21c222535654
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Added several methods to the Task Logic module. These include the automatic tranistion methods. The methods for running updates , that for instance place comments, in a datastore transition to keep the Task synced with the comments. And a rudimentary way of updating the Tasks' history. Reviewed by: Lennard de Rijk

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