comparison sat_pubsub/const.py @ 431:5e8b8ef5c862

implentation of XEP-0346 (Form Discovery and Publishing): The former non standard node schema has been replaced by XEP-0346 which uses 2 nodes (one from schema/template and one for submitted values). The implementation is an adapation of the former one, and data validation is still done even if this is not currently specified in any XEP. When the template node is modified, the change is reflected in the node schema.
author Goffi <goffi@goffi.org>
date Fri, 11 Dec 2020 17:19:00 +0100
parents 5a0ada3b61ca
children b5e1e8d93dd4
comparison
equal deleted inserted replaced
430:5a0ada3b61ca 431:5e8b8ef5c862
54 NS_CLIENT = 'jabber:client' 54 NS_CLIENT = 'jabber:client'
55 NS_GROUPBLOG_PREFIX = 'urn:xmpp:groupblog:' 55 NS_GROUPBLOG_PREFIX = 'urn:xmpp:groupblog:'
56 NS_ITEM_CONFIG = "http://jabber.org/protocol/pubsub#item-config" 56 NS_ITEM_CONFIG = "http://jabber.org/protocol/pubsub#item-config"
57 NS_ATOM = "http://www.w3.org/2005/Atom" 57 NS_ATOM = "http://www.w3.org/2005/Atom"
58 NS_FORWARD = 'urn:xmpp:forward:0' 58 NS_FORWARD = 'urn:xmpp:forward:0'
59 NS_SCHEMA = 'https://salut-a-toi/protocol/schema:0' 59 NS_FDP = 'urn:xmpp:fdp:0'
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
62 FDP_TEMPLATE_PREFIX = "fdp/template/"
63 FDP_SUBMITTED_PREFIX = "fdp/submitted/"
61 64
62 OPT_ACCESS_MODEL = 'pubsub#access_model' 65 OPT_ACCESS_MODEL = 'pubsub#access_model'
63 OPT_ROSTER_GROUPS_ALLOWED = 'pubsub#roster_groups_allowed' 66 OPT_ROSTER_GROUPS_ALLOWED = 'pubsub#roster_groups_allowed'
64 OPT_PERSIST_ITEMS = "pubsub#persist_items" 67 OPT_PERSIST_ITEMS = "pubsub#persist_items"
65 OPT_MAX_ITEMS = "pubsub#max_items" 68 OPT_MAX_ITEMS = "pubsub#max_items"