From 65fc06ca8709767319530b8cfc67847bff781fe0 Mon Sep 17 00:00:00 2001 From: tobes Date: Wed, 25 Jul 2012 17:04:20 +0100 Subject: [PATCH] [#2302] css setting minor refactor --- ckan/lib/app_globals.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ckan/lib/app_globals.py b/ckan/lib/app_globals.py index 8a69056bbd4..fc67bc2e3cb 100644 --- a/ckan/lib/app_globals.py +++ b/ckan/lib/app_globals.py @@ -15,9 +15,11 @@ def _set_main_css(self, css_file): must be of the form file.css ''' assert css_file.endswith('.css') if config.debug and css_file == 'base/css/main.css': - self.main_css = 'base/css/main.debug.css' + new_css = 'base/css/main.debug.css' else: - self.main_css = css_file + new_css = css_file + # FIXME we should check the css file exists + self.main_css = new_css print 'using css file %s' % self.main_css def __init__(self):