improved theme system

This commit is contained in:
dev
2009-06-04 09:43:41 +00:00
parent 2bbb0f35d1
commit 2cdae42b91
4 changed files with 3 additions and 11 deletions

View File

@ -33,7 +33,7 @@ def app(environ, start_response):
theme = req.cookies['style']
if 'theme' in req.args.keys():
theme = req.args['theme']
if not theme in ['light', 'dark']:
if not os.path.isfile('static/styles/%s.css' % theme):
theme = 'light'
if path == '':
path = 'index'