comparison src/plugins/plugin_xep_0060.py @ 1865:fc6eeacf31bc

plugin XEP-0277: service can be None in mbGet, resulting in a request on default pubsub service of profile (i.e. profile's PEP)
author Goffi <goffi@goffi.org>
date Tue, 01 Mar 2016 01:47:32 +0100
parents 3c0bb714a80b
children 29564cec913f
comparison
equal deleted inserted replaced
1864:96ba685162f6 1865:fc6eeacf31bc
268 return item_elt 268 return item_elt
269 269
270 def getItems(self, service, node, max_items=None, item_ids=None, sub_id=None, rsm_request=None, extra=None, profile_key=C.PROF_KEY_NONE): 270 def getItems(self, service, node, max_items=None, item_ids=None, sub_id=None, rsm_request=None, extra=None, profile_key=C.PROF_KEY_NONE):
271 """Retrieve pubsub items from a node. 271 """Retrieve pubsub items from a node.
272 272
273 @param service (JID): pubsub service. 273 @param service (JID, None): pubsub service.
274 @param node (str): node id. 274 @param node (str): node id.
275 @param max_items (int): optional limit on the number of retrieved items. 275 @param max_items (int): optional limit on the number of retrieved items.
276 @param item_ids (list[str]): identifiers of the items to be retrieved (can't be used with rsm_request). 276 @param item_ids (list[str]): identifiers of the items to be retrieved (can't be used with rsm_request).
277 @param sub_id (str): optional subscription identifier. 277 @param sub_id (str): optional subscription identifier.
278 @param rsm_request (rsm.RSMRequest): RSM request data 278 @param rsm_request (rsm.RSMRequest): RSM request data