pytask/taskapp/context_processors.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 01 Feb 2011 02:31:53 +0530
changeset 540 b07d52d49db7
parent 537 f285333bc66d
permissions -rwxr-xr-x
Initial tags for the chapters should not contain Textbook as the keyword.

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


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


from pytask.helpers 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,
      }