Mercurial > libervia-backend
diff src/core/xmpp.py @ 467:47af60767013
plugin group blog: getMassiveGroupBlog first draft
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 29 Mar 2012 00:04:31 +0200 |
parents | 448ce3c9e2ac |
children | 6cd04adddaea |
line wrap: on
line diff
--- a/src/core/xmpp.py Mon Mar 26 00:22:49 2012 +0200 +++ b/src/core/xmpp.py Thu Mar 29 00:04:31 2012 +0200 @@ -224,9 +224,13 @@ @return: RosterItem or None if contact is not in cache""" return self._jids.get(jid.userhost(), None) + def getBareJids(self): + """Return all bare jids (as unicode) of the roster""" + return self._jids.keys() + def getItems(self): """Return all items of the roster""" - return self._jids + return self._jids.values() class SatPresenceProtocol(xmppim.PresenceClientProtocol):