load some conf data in boot

This commit is contained in:
Anand Doshi 2012-06-08 16:07:01 +05:30
parent fa1963164c
commit 08c0869a3b

View File

@ -85,8 +85,8 @@ def boot_session(bootinfo):
# load subscription info
import conf
if hasattr(conf, 'max_users'): bootinfo['max_users'] = conf.max_users
if hasattr(conf, 'expires_on'): bootinfo['expires_on'] = conf.expires_on
for key in ['max_users', 'expires_on', 'max_space', 'status']:
if hasattr(conf, key): bootinfo[key] = getattr(conf, key)
company = webnotes.conn.sql("select name, default_currency from `tabCompany`", as_dict=1)
company_dict = {}
@ -95,8 +95,6 @@ def boot_session(bootinfo):
bootinfo['company'] = company_dict
def get_letter_heads():
"""load letter heads with startup"""
import webnotes