Merge pull request #137 from rhcarvalho/patch-1

Use jid.bare as a key instead of a JID instance.
This commit is contained in:
Lance Stout 2012-01-16 11:44:42 -08:00
commit a4b27ff031

View file

@ -152,11 +152,11 @@ class RosterNode(object):
'pending_out': pending_out,
'whitelisted': whitelisted,
'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,
roster=self)
if save:
self._jids[jid].save()
self._jids[key].save()
def subscribe(self, jid):
"""