diff --git a/sugar/profile.py b/sugar/profile.py index f731fba9..65f8582c 100644 --- a/sugar/profile.py +++ b/sugar/profile.py @@ -24,6 +24,7 @@ class _Profile(object): def __init__(self): self.name = None self.color = None + self.pubkey = None self._load() def update(self): @@ -40,6 +41,9 @@ class _Profile(object): if cp.has_option('Buddy', 'Color'): self.color = IconColor(cp.get('Buddy', 'Color')) + if cp.has_option('Buddy', 'PublicKey'): + self.pubkey = cp.get('Buddy', 'PublicKey') + del cp def get_nick_name(): @@ -48,6 +52,9 @@ def get_nick_name(): def get_color(): return _profile.color +def get_pubkey(): + return _profile.pubkey + def update(): _profile.update()