pytask/taskapp/context_processors.py
changeset 502 1e5df997eb01
child 537 f285333bc66d
equal deleted inserted replaced
501:b84d6a1d4603 502:1e5df997eb01
       
     1 """Module containing the context processors for taskapp.
       
     2 """
       
     3 
       
     4 
       
     5 __authors__ = [
       
     6     '"Madhusudan.C.S" <madhusudancs@fossee.in>',
       
     7     ]
       
     8 
       
     9 
       
    10 from pytask import configuration as config_settings
       
    11 
       
    12 
       
    13 def configuration(request):
       
    14     """Context processor that puts all the necessary configuration
       
    15     related variables to every RequestContext'ed template.
       
    16     """
       
    17 
       
    18     return {
       
    19       'TASK_CLAIM_ENABLED': config_settings.TASK_CLAIM_ENABLED,
       
    20       }