From c9629a481da750bfe6f58b3924a089021fbc914f Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 12 Feb 2013 12:54:58 +0530 Subject: [PATCH] fetch favicon from website settings --- website/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/utils.py b/website/utils.py index cd1b6a5974..48ca844ae9 100644 --- a/website/utils.py +++ b/website/utils.py @@ -19,7 +19,6 @@ from __future__ import unicode_literals import os import conf import webnotes -from webnotes.utils import cstr page_map = { 'Web Page': webnotes._dict({ @@ -52,7 +51,7 @@ def render(page_name): html = get_html(page_name) else: html = get_html('index') - except Exception, e: + except Exception: html = get_html('error') from webnotes.handler import eprint, print_zip @@ -244,7 +243,7 @@ def get_outer_env(): }) settings = webnotes.doc("Website Settings", "Website Settings") - for k in ["brand_html", "copyright", "address", "top_bar_background"]: + for k in ["brand_html", "copyright", "address", "top_bar_background", "favicon"]: if k in settings.fields: ret[k] = settings.fields[k]