diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2007-02-27 18:08:17 (GMT) |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2007-02-27 18:08:17 (GMT) |
commit | 5535aefc758a50366851f1bc0cf382757d5f8178 (patch) | |
tree | cd00d36e0b4ab2a173a3702847d52b6032135c97 /shell/intro | |
parent | d398b37645f5d6c59f243a4e6221a842a8beaafe (diff) |
Add a Server section in the config file and use it to register only when needed
Diffstat (limited to 'shell/intro')
-rw-r--r-- | shell/intro/intro.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/intro/intro.py b/shell/intro/intro.py index 0a73329..2e23dff 100644 --- a/shell/intro/intro.py +++ b/shell/intro/intro.py @@ -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) |