Mercurial > libervia-pubsub
changeset 299:07ad8d8fde77
item publisher is enforced
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 25 Nov 2015 15:58:42 +0100 |
parents | 648f294601c2 |
children | c5acb4995fde |
files | sat_pubsub/backend.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sat_pubsub/backend.py Tue Nov 24 17:02:35 2015 +0100 +++ b/sat_pubsub/backend.py Wed Nov 25 15:58:42 2015 +0100 @@ -305,6 +305,8 @@ items_data = [] check_overwrite = False for item in items: + # we enforce publisher (cf XEP-0060 ยง7.1.2.3) + item['publisher'] = requestor.full() if persistItems or deliverPayloads: item.uri = None item.defaultUri = None