Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0060.py @ 3597:5d108ce026d7
plugin pubsub cache: Pubsub Caching implementation
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 29 Jul 2021 22:51:01 +0200 |
parents | d830c11eeef3 |
children | 1cdb9d9fad6b |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0060.py Thu Jul 29 22:51:01 2021 +0200 +++ b/sat/plugins/plugin_xep_0060.py Thu Jul 29 22:51:01 2021 +0200 @@ -91,6 +91,8 @@ ID_SINGLETON = "current" EXTRA_PUBLISH_OPTIONS = "publish_options" EXTRA_ON_PRECOND_NOT_MET = "on_precondition_not_met" + # extra disco needed for RSM, cf. XEP-0060 ยง 6.5.4 + DISCO_RSM = "http://jabber.org/protocol/pubsub#rsm" def __init__(self, host): log.info(_("PubSub plugin initialization")) @@ -392,6 +394,7 @@ the method must be named after PubSub constants in lower case and suffixed with "_cb" e.g.: "items_cb" for C.PS_ITEMS, "delete_cb" for C.PS_DELETE + note: only C.PS_ITEMS and C.PS_DELETE are implemented so far """ assert node is not None assert kwargs