[minor] fixes for import conf

This commit is contained in:
Anand Doshi
2013-09-24 17:17:39 +05:30
parent 0eb811a518
commit de8b6aadaf
10 changed files with 18 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ def boot_session(bootinfo):
# load subscription info
from webnotes import conf
for key in ['max_users', 'expires_on', 'max_space', 'status', 'commercial_support']:
if hasattr(conf, key): bootinfo[key] = getattr(conf, key)
if key in conf: bootinfo[key] = conf.get(key)
bootinfo['docs'] += webnotes.conn.sql("""select name, default_currency, cost_center
from `tabCompany`""", as_dict=1, update={"doctype":":Company"})