properly manage the registered field in the config file

This commit is contained in:
Guillaume Desmottes 2007-02-27 20:22:38 +01:00
parent 4f4291e41c
commit 152d95f3de

View File

@ -50,7 +50,9 @@ class _Profile(object):
self.server = cp.get('Server', 'Server') self.server = cp.get('Server', 'Server')
if cp.has_option('Server', 'Registered'): 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 del cp