From 2bdad0ae7a3a6e4ec5116becd39910388b679ed2 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 4 Oct 2012 15:39:08 +0200 Subject: restructure --- src/meetingtools/context_processors.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/meetingtools/context_processors.py (limited to 'src/meetingtools/context_processors.py') diff --git a/src/meetingtools/context_processors.py b/src/meetingtools/context_processors.py deleted file mode 100644 index 5bd5885..0000000 --- a/src/meetingtools/context_processors.py +++ /dev/null @@ -1,23 +0,0 @@ -from django.core.exceptions import ImproperlyConfigured - -__author__ = 'leifj' - -from django.conf import settings -import logging - -def theme(request): - - def _w(x): - return {'theme': x} - - vhost = request.get_host() - vhost = vhost.replace(':','_') - - ctx = {'vhost': vhost} - if hasattr(settings,'THEMES'): - if settings.THEMES.has_key(vhost): - ctx.update(settings.THEMES[vhost]) - elif settings.THEMES.has_key('__default__'): - ctx.update(settings.THEMES['__default__']) - - return _w(ctx) -- cgit v1.1