services/presence/buddy: Fix thinko - register Owner with correct objid

Previously the keyid/ prefix was missing.
This commit is contained in:
Simon McVittie 2007-05-30 17:38:58 +01:00
parent ee6c1b4283
commit fd4e514e21
2 changed files with 4 additions and 2 deletions

View File

@ -589,7 +589,8 @@ class ShellOwner(GenericOwner):
icon = f.read()
f.close()
GenericOwner.__init__(self, ps, bus, psutils.pubkey_to_keyid(key),
GenericOwner.__init__(self, ps, bus,
'keyid/' + psutils.pubkey_to_keyid(key),
key=key, nick=nick, color=color, icon=icon, server=server,
key_hash=key_hash, registered=registered)

View File

@ -63,7 +63,8 @@ class TestOwner(GenericOwner):
icon = _get_random_image()
_logger.debug("pubkey is %s" % pubkey)
GenericOwner.__init__(self, ps, bus, pubkey_to_keyid(pubkey),
GenericOwner.__init__(self, ps, bus,
'keyid/' + pubkey_to_keyid(pubkey),
key=pubkey, nick=nick, color=color, icon=icon,
registered=registered, key_hash=privkey_hash)