Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/intro
diff options
context:
space:
mode:
authorGuillaume 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)
commit5535aefc758a50366851f1bc0cf382757d5f8178 (patch)
treecd00d36e0b4ab2a173a3702847d52b6032135c97 /shell/intro
parentd398b37645f5d6c59f243a4e6221a842a8beaafe (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.py5
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)