pytask/taskapp/context_processors.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 28 Jan 2011 04:05:09 +0530
changeset 521 fe1914114802
parent 502 1e5df997eb01
child 537 f285333bc66d
permissions -rwxr-xr-x
Content of the email about workshop slides.

"""Module containing the context processors for taskapp.
"""


__authors__ = [
    '"Madhusudan.C.S" <madhusudancs@fossee.in>',
    ]


from pytask import configuration as config_settings


def configuration(request):
    """Context processor that puts all the necessary configuration
    related variables to every RequestContext'ed template.
    """

    return {
      'TASK_CLAIM_ENABLED': config_settings.TASK_CLAIM_ENABLED,
      }