diff 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
line wrap: on
line diff
--- a/sat_pubsub/const.py	Sun Aug 16 01:15:13 2015 +0200
+++ b/sat_pubsub/const.py	Sun Aug 16 01:32:42 2015 +0200
@@ -57,6 +57,9 @@
 NS_ITEM_CONFIG = "http://jabber.org/protocol/pubsub#item-config"
 OPT_ACCESS_MODEL = 'pubsub#access_model'
 OPT_ROSTER_GROUPS_ALLOWED = 'pubsub#roster_groups_allowed'
+OPT_PERSIST_ITEMS = "pubsub#persist_items"
+OPT_DELIVER_PAYLOADS = "pubsub#deliver_payloads"
+OPT_SEND_LAST_PUBLISHED_ITEM = "pubsub#send_last_published_item"
 OPT_PUBLISH_MODEL = 'pubsub#publish_model'
 VAL_AMODEL_OPEN = 'open'
 VAL_AMODEL_ROSTER = 'roster'
@@ -67,7 +70,7 @@
 VAL_PMODEL_OPEN = 'open'
 VAL_PMODEL_DEFAULT = VAL_PMODEL_PUBLISHERS
 
-FLAG_RETRACT_ALLOW_PUBLISHER = True  # XXX: see the method BackendService._doRetractAllowPublisher
+# FLAG_RETRACT_ALLOW_PUBLISHER = True  # XXX: see the method BackendService._doRetractAllowPublisher
 FLAG_ENABLE_RSM = True
 VAL_RSM_MAX_DEFAULT = 10
 FLAG_ENABLE_MAM = True