comparison sat/core/constants.py @ 3587:2715da5b2aa7

plugin XEP-0060: handle purge notifications
author Goffi <goffi@goffi.org>
date Thu, 29 Jul 2021 15:54:54 +0200
parents 509f7a1c67dc
children 5d108ce026d7
comparison
equal deleted inserted replaced
3586:5f65f4e9f8cb 3587:2715da5b2aa7
235 235
236 # PubSub 236 # PubSub
237 PS_PUBLISH = "publish" 237 PS_PUBLISH = "publish"
238 PS_RETRACT = "retract" # used for items 238 PS_RETRACT = "retract" # used for items
239 PS_DELETE = "delete" # used for nodes 239 PS_DELETE = "delete" # used for nodes
240 PS_PURGE = "purge" # used for nodes
240 PS_ITEM = "item" 241 PS_ITEM = "item"
241 PS_ITEMS = "items" # Can contain publish and retract items 242 PS_ITEMS = "items" # Can contain publish and retract items
242 PS_EVENTS = (PS_ITEMS, PS_DELETE) 243 PS_EVENTS = (PS_ITEMS, PS_DELETE, PS_PURGE)
243 244
244 ## MESSAGE/NOTIFICATION LEVELS ## 245 ## MESSAGE/NOTIFICATION LEVELS ##
245 246
246 LVL_INFO = "info" 247 LVL_INFO = "info"
247 LVL_WARNING = "warning" 248 LVL_WARNING = "warning"