diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-04 15:39:08 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-04 15:39:08 +0200 |
commit | 2bdad0ae7a3a6e4ec5116becd39910388b679ed2 (patch) | |
tree | 5afdfba0a93c1af50d53bdc245d57cc4053e109a /src/meetingtools/context_processors.py | |
parent | 873e7823970352d591deee5f67f47c5436ee0e84 (diff) |
restructure
Diffstat (limited to 'src/meetingtools/context_processors.py')
-rw-r--r-- | src/meetingtools/context_processors.py | 23 |
1 files changed, 0 insertions, 23 deletions
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) |