comparison 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
comparison
equal deleted inserted replaced
466:448ce3c9e2ac 467:47af60767013
222 """Return RosterItem for a given jid 222 """Return RosterItem for a given jid
223 @param jid: jid of the contact 223 @param jid: jid of the contact
224 @return: RosterItem or None if contact is not in cache""" 224 @return: RosterItem or None if contact is not in cache"""
225 return self._jids.get(jid.userhost(), None) 225 return self._jids.get(jid.userhost(), None)
226 226
227 def getBareJids(self):
228 """Return all bare jids (as unicode) of the roster"""
229 return self._jids.keys()
230
227 def getItems(self): 231 def getItems(self):
228 """Return all items of the roster""" 232 """Return all items of the roster"""
229 return self._jids 233 return self._jids.values()
230 234
231 235
232 class SatPresenceProtocol(xmppim.PresenceClientProtocol): 236 class SatPresenceProtocol(xmppim.PresenceClientProtocol):
233 237
234 def __init__(self, host): 238 def __init__(self, host):