diff sat_pubsub/const.py @ 422:c21f31355ab9

configuration: "max_items" option: "max_items" is implemented using a text-single field, as it is done in the XEP-0060 example (there is no real formal description). When changing the node configuration, the max_items can't be set to a number lower than the total number of items in the node (the configuration will then be rejected), this is to avoid accidental deletion of items.
author Goffi <goffi@goffi.org>
date Tue, 10 Mar 2020 11:11:38 +0100
parents ccb2a22ea0fc
children 5a0ada3b61ca
line wrap: on
line diff
--- a/sat_pubsub/const.py	Sat Feb 22 13:06:51 2020 +0100
+++ b/sat_pubsub/const.py	Tue Mar 10 11:11:38 2020 +0100
@@ -62,6 +62,7 @@
 OPT_ACCESS_MODEL = 'pubsub#access_model'
 OPT_ROSTER_GROUPS_ALLOWED = 'pubsub#roster_groups_allowed'
 OPT_PERSIST_ITEMS = "pubsub#persist_items"
+OPT_MAX_ITEMS = "pubsub#max_items"
 OPT_DELIVER_PAYLOADS = "pubsub#deliver_payloads"
 OPT_SEND_LAST_PUBLISHED_ITEM = "pubsub#send_last_published_item"
 OPT_PUBLISH_MODEL = 'pubsub#publish_model'