pytask/taskapp/context_processors.py
changeset 502 1e5df997eb01
child 537 f285333bc66d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/taskapp/context_processors.py	Thu Jan 20 17:47:41 2011 +0530
@@ -0,0 +1,20 @@
+"""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,
+      }