Don't create already existing config sections
This commit is contained in:
parent
aeb162ae08
commit
f3cedf1bca
@ -235,11 +235,13 @@ class IntroBox(hippo.CanvasBox, hippo.CanvasItem):
|
|||||||
|
|
||||||
cp = ConfigParser()
|
cp = ConfigParser()
|
||||||
section = 'Buddy'
|
section = 'Buddy'
|
||||||
|
if not cp.has_section(section):
|
||||||
cp.add_section(section)
|
cp.add_section(section)
|
||||||
cp.set(section, 'NickName', name)
|
cp.set(section, 'NickName', name)
|
||||||
cp.set(section, 'Color', color.to_string())
|
cp.set(section, 'Color', color.to_string())
|
||||||
|
|
||||||
secion = 'Server'
|
secion = 'Server'
|
||||||
|
if not cp.has_section(section):
|
||||||
cp.add_section(section)
|
cp.add_section(section)
|
||||||
cp.set(section, 'Server', 'olpc.collabora.co.uk')
|
cp.set(section, 'Server', 'olpc.collabora.co.uk')
|
||||||
cp.set(Section, 'Registered', 'False')
|
cp.set(Section, 'Registered', 'False')
|
||||||
|
Loading…
Reference in New Issue
Block a user