Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0060.py @ 2319:e715a29c4f9b
plugin XEP-0060: remove max_items when item_ids is set on getItems
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 08 Jul 2017 23:21:01 +0200 |
parents | 01f0a954d506 |
children | b1bbd2994ceb |
comparison
equal
deleted
inserted
replaced
2318:ddb67c186f61 | 2319:e715a29c4f9b |
---|---|
333 - list of items | 333 - list of items |
334 - metadata with the following keys: | 334 - metadata with the following keys: |
335 - rsm_first, rsm_last, rsm_count, rsm_index: first, last, count and index value of RSMResponse | 335 - rsm_first, rsm_last, rsm_count, rsm_index: first, last, count and index value of RSMResponse |
336 - service, node: service and node used | 336 - service, node: service and node used |
337 """ | 337 """ |
338 if item_ids and max_items is not None: | |
339 max_items = None | |
338 if rsm_request and item_ids: | 340 if rsm_request and item_ids: |
339 raise ValueError(u"items_id can't be used with rsm") | 341 raise ValueError(u"items_id can't be used with rsm") |
340 if extra is None: | 342 if extra is None: |
341 extra = {} | 343 extra = {} |
342 client = self.host.getClient(profile_key) | 344 client = self.host.getClient(profile_key) |