diff sat_pubsub/const.py @ 354:18b983fe9e1b

backend: added "presence" access_model: - move presence checking method in separated method so they can be use for get and subscriptions - added VAL_AMODEL_PRESENCE constant
author Goffi <goffi@goffi.org>
date Fri, 08 Sep 2017 08:02:05 +0200
parents efbdca10f0fb
children a92f482ff14f
line wrap: on
line diff
--- a/sat_pubsub/const.py	Fri Sep 08 08:02:05 2017 +0200
+++ b/sat_pubsub/const.py	Fri Sep 08 08:02:05 2017 +0200
@@ -67,6 +67,7 @@
 OPT_SEND_LAST_PUBLISHED_ITEM = "pubsub#send_last_published_item"
 OPT_PUBLISH_MODEL = 'pubsub#publish_model'
 VAL_AMODEL_OPEN = 'open'
+VAL_AMODEL_PRESENCE = 'presence'
 VAL_AMODEL_PUBLISHER_ROSTER = 'publisher-roster'
 VAL_AMODEL_WHITELIST = 'whitelist'
 VAL_AMODEL_PUBLISH_ONLY = 'publish-only'