changeset 3468:36cac8e6f57d

plugin XEP-0060: added constants for overwrite policy configuration option
author Goffi <goffi@goffi.org>
date Sat, 27 Feb 2021 18:25:20 +0100
parents 5901a7170528
children c063cbb2ad6e
files sat/plugins/plugin_xep_0060.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0060.py	Fri Feb 19 15:53:27 2021 +0100
+++ b/sat/plugins/plugin_xep_0060.py	Sat Feb 27 18:25:20 2021 +0100
@@ -73,6 +73,7 @@
     OPT_SUBSCRIPTION_DEPTH = "pubsub#subscription_depth"
     OPT_ROSTER_GROUPS_ALLOWED = "pubsub#roster_groups_allowed"
     OPT_PUBLISH_MODEL = "pubsub#publish_model"
+    OPT_OVERWRITE_POLICY = "pubsub#overwrite_policy"
     ACCESS_OPEN = "open"
     ACCESS_PRESENCE = "presence"
     ACCESS_ROSTER = "roster"
@@ -82,6 +83,8 @@
     PUBLISH_MODEL_PUBLISHERS = "publishers"
     PUBLISH_MODEL_SUBSCRIBERS = "subscribers"
     PUBLISH_MODEL_OPEN = "open"
+    OWPOL_ORIGINAL = "original_publisher"
+    OWPOL_ANY_PUB = "any_publisher"
     ID_SINGLETON = "current"
     EXTRA_PUBLISH_OPTIONS = "publish_options"
     EXTRA_ON_PRECOND_NOT_MET = "on_precondition_not_met"