Add a Server section in the config file and use it to register only when needed

This commit is contained in:
Guillaume Desmottes
2007-02-27 19:08:17 +01:00
parent d398b37645
commit 5535aefc75
3 changed files with 48 additions and 3 deletions
+5
View File
@@ -239,6 +239,11 @@ class IntroBox(hippo.CanvasBox, hippo.CanvasItem):
cp.set(section, 'NickName', name)
cp.set(section, 'Color', color.to_string())
secion = 'Server'
cp.add_section(section)
cp.set(section, 'Server', 'olpc.collabora.co.uk')
cp.set(Section, 'Registered', 'False')
config_path = os.path.join(env.get_profile_path(), 'config')
f = open(config_path, 'w')
cp.write(f)