From f4de333267459dc89d3310c8a42ce77b23609eff Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 10 Sep 2013 15:49:18 +0530 Subject: [PATCH] [website] [minor] moving to framework --- startup/webutils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/startup/webutils.py b/startup/webutils.py index cd37be4964..b427b40ae6 100644 --- a/startup/webutils.py +++ b/startup/webutils.py @@ -3,6 +3,11 @@ import webnotes, conf, os from webnotes.utils import cint, cstr, encode + +def get_website_settings(): + return { + "shopping_cart_enabled": cint(webnotes.conn.get_default("shopping_cart_enabled")) + } @webnotes.whitelist() def update_profile(fullname, password=None, company_name=None, mobile_no=None, phone=None):