Mercurial > libervia-pubsub
comparison sat_pubsub/const.py @ 478:b544109ab4c4
Privileged Entity update + Pubsub Account Management partial implementation + Public Pubsub Subscription
/!\ pgsql schema needs to be updated /!\
/!\ server conf needs to be updated for privileged entity: only the new
`urn:xmpp:privilege:2` namespace is handled now /!\
Privileged entity has been updated to hanlde the new namespace and IQ permission. Roster
pushes are not managed yet.
XEP-0376 (Pubsub Account Management) is partially implemented. The XEP is not fully
specified at the moment, and my messages on standard@ haven't seen any reply. Thus for now
only "Subscribing", "Unsubscribing" and "Listing Subscriptions" is implemented, "Auto
Subscriptions" and "Filtering" is not.
Public Pubsub Subscription
(https://xmpp.org/extensions/inbox/pubsub-public-subscriptions.html) is implemented;
the XEP has been accepted by council but is not yet published. It will be updated to use
subscription options instead of the <public> element actually specified, I'm waiting
for publication to update the XEP.
unsubscribe has been updated to return the `<subscription>` element as expected by
XEP-0060 (sat_tmp needs to be updated).
database schema has been updated to add columns necessary to keep track of subscriptions
to external nodes and to mark subscriptions as public.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 11 May 2022 13:39:08 +0200 |
parents | 1a179ad10125 |
children |
comparison
equal
deleted
inserted
replaced
477:9125a6e440c0 | 478:b544109ab4c4 |
---|---|
57 NS_ITEM_CONFIG = "http://jabber.org/protocol/pubsub#item-config" | 57 NS_ITEM_CONFIG = "http://jabber.org/protocol/pubsub#item-config" |
58 NS_ATOM = "http://www.w3.org/2005/Atom" | 58 NS_ATOM = "http://www.w3.org/2005/Atom" |
59 NS_PUBSUB_RSM = "http://jabber.org/protocol/pubsub#rsm" | 59 NS_PUBSUB_RSM = "http://jabber.org/protocol/pubsub#rsm" |
60 NS_FORWARD = 'urn:xmpp:forward:0' | 60 NS_FORWARD = 'urn:xmpp:forward:0' |
61 NS_FDP = 'urn:xmpp:fdp:0' | 61 NS_FDP = 'urn:xmpp:fdp:0' |
62 NS_PPS = 'urn:xmpp:pps:0' | |
63 NS_PPS_SUBSCRIPTIONS = "urn:xmpp:pps:subscriptions:0" | |
64 NS_PPS_SUBSCRIBERS = "urn:xmpp:pps:subscribers:0" | |
62 NS_SCHEMA_RESTRICT = 'https://salut-a-toi/protocol/schema#restrict:0' | 65 NS_SCHEMA_RESTRICT = 'https://salut-a-toi/protocol/schema#restrict:0' |
66 | |
67 PPS_SUBSCRIBERS_PREFIX = f"{NS_PPS_SUBSCRIBERS}/" | |
63 | 68 |
64 FDP_TEMPLATE_PREFIX = "fdp/template/" | 69 FDP_TEMPLATE_PREFIX = "fdp/template/" |
65 FDP_SUBMITTED_PREFIX = "fdp/submitted/" | 70 FDP_SUBMITTED_PREFIX = "fdp/submitted/" |
66 | 71 |
67 OPT_ACCESS_MODEL = 'pubsub#access_model' | 72 OPT_ACCESS_MODEL = 'pubsub#access_model' |