Add public key item to sugar profile

This commit is contained in:
Dan Williams 2007-02-22 14:07:53 -05:00
parent 4b7fabc33e
commit d091c60275

View File

@ -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()