diff options
author | Dan Williams <dcbw@redhat.com> | 2007-02-22 19:07:53 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-02-22 19:07:53 (GMT) |
commit | d091c6027565e2ac74301378f7c2869096d77245 (patch) | |
tree | e10f261b1f4b7bfdb3a2edef3d50039d663d8b6d /sugar/profile.py | |
parent | 4b7fabc33ee9a806f791e5149d5c6e4076e41832 (diff) |
Add public key item to sugar profile
Diffstat (limited to 'sugar/profile.py')
-rw-r--r-- | sugar/profile.py | 7 |
1 files changed, 7 insertions, 0 deletions
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() |