summaryrefslogtreecommitdiff
path: root/gstudio/context_processors.py
diff options
context:
space:
mode:
authorgnowgi <nagarjun@gnowledge.org>2012-03-15 16:19:20 +0530
committergnowgi <nagarjun@gnowledge.org>2012-03-15 16:19:20 +0530
commit7a4f561e851fdc7246d804c3abb6748b8a4199a6 (patch)
treed2afc3463fd49625a9be482012f5c3bfcf7c42b9 /gstudio/context_processors.py
downloadgnowsys-7a4f561e851fdc7246d804c3abb6748b8a4199a6.tar.gz
master trunk of gnowsys-studio
Diffstat (limited to 'gstudio/context_processors.py')
-rw-r--r--gstudio/context_processors.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/gstudio/context_processors.py b/gstudio/context_processors.py
new file mode 100644
index 0000000..5274038
--- /dev/null
+++ b/gstudio/context_processors.py
@@ -0,0 +1,24 @@
+
+# Copyright (c) 2011, 2012 Free Software Foundation
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+"""Context Processors for Gstudio"""
+from gstudio import __version__
+
+
+def version(request):
+ """Adds version of Gstudio to the context"""
+ return {'GSTUDIO_VERSION': __version__}