From d091c6027565e2ac74301378f7c2869096d77245 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 22 Feb 2007 19:07:53 +0000 Subject: Add public key item to sugar profile --- (limited to 'sugar/profile.py') diff --git a/sugar/profile.py b/sugar/profile.py index f731fba..65f8582 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() -- cgit v0.9.1