[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:
parent
ceeb9e2ced
commit
f47e32d437
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in New Issue