From 152d95f3ded7a7695ac37e42bfece276b6964b80 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 27 Feb 2007 20:22:38 +0100 Subject: [PATCH] properly manage the registered field in the config file --- sugar/profile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sugar/profile.py b/sugar/profile.py index 526c0f9d..4df0f522 100644 --- a/sugar/profile.py +++ b/sugar/profile.py @@ -50,7 +50,9 @@ class _Profile(object): self.server = cp.get('Server', 'Server') if cp.has_option('Server', 'Registered'): - self.server_registered = cp.get('Server', 'Registered') + registered = cp.get('Server', 'Registered') + if registered.lower() == "true": + self.server_registered = True del cp