Add tests for retrieving pubsub items.
This commit is contained in:
@@ -334,6 +334,7 @@ class xep_0060(base_plugin):
|
||||
iq = self.xmpp.Iq(sto=jid, sfrom=ifrom, stype='get')
|
||||
item = self.stanza.Item()
|
||||
item['id'] = item_id
|
||||
iq['pubsub']['items']['node'] = node
|
||||
iq['pubsub']['items'].append(item)
|
||||
return iq.send(block=block, callback=callback, timeout=timeout)
|
||||
|
||||
|
||||
@@ -113,6 +113,9 @@ class Items(ElementBase):
|
||||
plugin_tag_map = {}
|
||||
subitem = (Item,)
|
||||
|
||||
def set_max_items(self, value):
|
||||
self._set_attr('max_items', str(value))
|
||||
|
||||
registerStanzaPlugin(Pubsub, Items)
|
||||
|
||||
class Create(ElementBase):
|
||||
|
||||
Reference in New Issue
Block a user