comparison 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
comparison
equal deleted inserted replaced
421:f124ed5ea78b 422:c21f31355ab9
60 NS_SCHEMA_RESTRICT = 'https://salut-a-toi/protocol/schema#restrict:0' 60 NS_SCHEMA_RESTRICT = 'https://salut-a-toi/protocol/schema#restrict:0'
61 61
62 OPT_ACCESS_MODEL = 'pubsub#access_model' 62 OPT_ACCESS_MODEL = 'pubsub#access_model'
63 OPT_ROSTER_GROUPS_ALLOWED = 'pubsub#roster_groups_allowed' 63 OPT_ROSTER_GROUPS_ALLOWED = 'pubsub#roster_groups_allowed'
64 OPT_PERSIST_ITEMS = "pubsub#persist_items" 64 OPT_PERSIST_ITEMS = "pubsub#persist_items"
65 OPT_MAX_ITEMS = "pubsub#max_items"
65 OPT_DELIVER_PAYLOADS = "pubsub#deliver_payloads" 66 OPT_DELIVER_PAYLOADS = "pubsub#deliver_payloads"
66 OPT_SEND_LAST_PUBLISHED_ITEM = "pubsub#send_last_published_item" 67 OPT_SEND_LAST_PUBLISHED_ITEM = "pubsub#send_last_published_item"
67 OPT_PUBLISH_MODEL = 'pubsub#publish_model' 68 OPT_PUBLISH_MODEL = 'pubsub#publish_model'
68 OPT_SERIAL_IDS = 'pubsub#serial_ids' 69 OPT_SERIAL_IDS = 'pubsub#serial_ids'
69 OPT_CONSISTENT_PUBLISHER = 'pubsub#consistent_publisher' 70 OPT_CONSISTENT_PUBLISHER = 'pubsub#consistent_publisher'