Use jid.bare as a key instead of a JID instance.

This commit is contained in:
Rodolfo Henrique Carvalho 2012-01-16 16:59:45 -02:00
parent 7b854a190e
commit f49b6fa79f

View file

@ -152,11 +152,11 @@ class RosterNode(object):
'pending_out': pending_out, 'pending_out': pending_out,
'whitelisted': whitelisted, 'whitelisted': whitelisted,
'subscription': 'none'} 'subscription': 'none'}
self._jids[jid] = RosterItem(self.xmpp, jid, self.jid, self._jids[key] = RosterItem(self.xmpp, jid, self.jid,
state=state, db=self.db, state=state, db=self.db,
roster=self) roster=self)
if save: if save:
self._jids[jid].save() self._jids[key].save()
def subscribe(self, jid): def subscribe(self, jid):
""" """