comparison sat_pubsub/const.py @ 294:df1edebb0466

PEP implementation, draft (huge patch sorry): /!\ database schema has changed ! /!\ - whole PEP behaviour is not managed yet - if the stanza is delegated, PEP is assumed - fixed potential SQL injection in pgsql_storage - publish notifications manage PEP - added retract notifications (if "notify" attribute is present), with PEP handling - a publisher can't replace an item he didn't publised anymore - /!\ schema has changed, sat_pubsub_update_0_1.sql update it - sat_pubsub_update_0_1.sql also fixes bad items coming from former version of SàT
author Goffi <goffi@goffi.org>
date Sun, 16 Aug 2015 01:32:42 +0200
parents 002c59dbc23f
children 05c875a13a62
comparison
equal deleted inserted replaced
293:b96a4ac25f8b 294:df1edebb0466
55 55
56 NS_GROUPBLOG_PREFIX = 'urn:xmpp:groupblog:' 56 NS_GROUPBLOG_PREFIX = 'urn:xmpp:groupblog:'
57 NS_ITEM_CONFIG = "http://jabber.org/protocol/pubsub#item-config" 57 NS_ITEM_CONFIG = "http://jabber.org/protocol/pubsub#item-config"
58 OPT_ACCESS_MODEL = 'pubsub#access_model' 58 OPT_ACCESS_MODEL = 'pubsub#access_model'
59 OPT_ROSTER_GROUPS_ALLOWED = 'pubsub#roster_groups_allowed' 59 OPT_ROSTER_GROUPS_ALLOWED = 'pubsub#roster_groups_allowed'
60 OPT_PERSIST_ITEMS = "pubsub#persist_items"
61 OPT_DELIVER_PAYLOADS = "pubsub#deliver_payloads"
62 OPT_SEND_LAST_PUBLISHED_ITEM = "pubsub#send_last_published_item"
60 OPT_PUBLISH_MODEL = 'pubsub#publish_model' 63 OPT_PUBLISH_MODEL = 'pubsub#publish_model'
61 VAL_AMODEL_OPEN = 'open' 64 VAL_AMODEL_OPEN = 'open'
62 VAL_AMODEL_ROSTER = 'roster' 65 VAL_AMODEL_ROSTER = 'roster'
63 VAL_AMODEL_JID = 'jid' 66 VAL_AMODEL_JID = 'jid'
64 VAL_AMODEL_DEFAULT = VAL_AMODEL_OPEN 67 VAL_AMODEL_DEFAULT = VAL_AMODEL_OPEN
65 VAL_PMODEL_PUBLISHERS = 'publishers' 68 VAL_PMODEL_PUBLISHERS = 'publishers'
66 VAL_PMODEL_SUBSCRIBERS = 'subscribers' 69 VAL_PMODEL_SUBSCRIBERS = 'subscribers'
67 VAL_PMODEL_OPEN = 'open' 70 VAL_PMODEL_OPEN = 'open'
68 VAL_PMODEL_DEFAULT = VAL_PMODEL_PUBLISHERS 71 VAL_PMODEL_DEFAULT = VAL_PMODEL_PUBLISHERS
69 72
70 FLAG_RETRACT_ALLOW_PUBLISHER = True # XXX: see the method BackendService._doRetractAllowPublisher 73 # FLAG_RETRACT_ALLOW_PUBLISHER = True # XXX: see the method BackendService._doRetractAllowPublisher
71 FLAG_ENABLE_RSM = True 74 FLAG_ENABLE_RSM = True
72 VAL_RSM_MAX_DEFAULT = 10 75 VAL_RSM_MAX_DEFAULT = 10
73 FLAG_ENABLE_MAM = True 76 FLAG_ENABLE_MAM = True