Don't create already existing config sections

This commit is contained in:
Dan Williams 2007-02-27 14:45:06 -05:00
parent aeb162ae08
commit f3cedf1bca

View File

@ -235,12 +235,14 @@ class IntroBox(hippo.CanvasBox, hippo.CanvasItem):
cp = ConfigParser()
section = 'Buddy'
cp.add_section(section)
if not cp.has_section(section):
cp.add_section(section)
cp.set(section, 'NickName', name)
cp.set(section, 'Color', color.to_string())
secion = 'Server'
cp.add_section(section)
if not cp.has_section(section):
cp.add_section(section)
cp.set(section, 'Server', 'olpc.collabora.co.uk')
cp.set(Section, 'Registered', 'False')