[FIX]:initialise the parser before adding user defined sections to parser

lp bug: https://launchpad.net/bugs/822836 fixed

bzr revid: nch@tinyerp.com-20111128111430-cki6c7dkthq8ynug
This commit is contained in:
Naresh (OpenERP) 2011-11-28 16:44:30 +05:30
parent ceeb9e2ced
commit f47e32d437
1 changed files with 1 additions and 0 deletions

View File

@ -568,6 +568,7 @@ class configmanager(object):
p.set('options', opt, self.options[opt])
for sec in sorted(self.misc.keys()):
p.add_section(sec)
for opt in sorted(self.misc[sec].keys()):
p.set(sec,opt,self.misc[sec][opt])