Mercurial > libervia-pubsub
comparison sat_pubsub/mam.py @ 487:7a23db86ee65
mam: fix message sending in `onArchiveRequest`
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 02 Oct 2022 16:26:48 +0200 |
parents | bcbd2399bfee |
children | c41f37f1b51c |
comparison
equal
deleted
inserted
replaced
486:39a6c0bc914b | 487:7a23db86ee65 |
---|---|
101 items = event.addElement('items') | 101 items = event.addElement('items') |
102 items["node"] = mam_request.node | 102 items["node"] = mam_request.node |
103 items.addChild(elt) | 103 items.addChild(elt) |
104 return message | 104 return message |
105 | 105 |
106 def cb(items_data): | 106 def cb(items_data_tuple): |
107 items_data, rsm_response = items_data_tuple | |
107 msg_data = [] | 108 msg_data = [] |
108 rsm_elt = None | 109 rsm_elt = None |
109 attributes = {} | 110 attributes = {} |
110 for item_data in items_data: | 111 for item_data in items_data: |
111 if item_data.item.name == 'set' and item_data.item.uri == rsm.NS_RSM: | 112 if item_data.item.name == 'set' and item_data.item.uri == rsm.NS_RSM: |