diff twisted/plugins/pubsub.py @ 431:5e8b8ef5c862

implentation of XEP-0346 (Form Discovery and Publishing): The former non standard node schema has been replaced by XEP-0346 which uses 2 nodes (one from schema/template and one for submitted values). The implementation is an adapation of the former one, and data validation is still done even if this is not currently specified in any XEP. When the template node is modified, the change is reflected in the node schema.
author Goffi <goffi@goffi.org>
date Fri, 11 Dec 2020 17:19:00 +0100
parents 5a0ada3b61ca
children 36c9fb677f1d
line wrap: on
line diff
--- a/twisted/plugins/pubsub.py	Fri Dec 11 17:18:52 2020 +0100
+++ b/twisted/plugins/pubsub.py	Fri Dec 11 17:19:00 2020 +0100
@@ -214,7 +214,6 @@
         from sat_pubsub import mam as pubsub_mam
         from sat_pubsub import pubsub_admin
         from sat_pubsub.backend import BackendService, ExtraDiscoHandler
-        from sat_pubsub.schema import SchemaHandler
         from sat_pubsub.privilege import PrivilegesHandler
         from sat_pubsub.delegation import DelegationsHandler
 
@@ -293,9 +292,6 @@
         pa = pubsub_admin.PubsubAdminHandler(bs)
         pa.setHandlerParent(cs)
 
-        sh = SchemaHandler()
-        sh.setHandlerParent(cs)
-
         # wokkel.pubsub doesn't handle non pubsub# disco
         # and we need to announce other feature, so this is a workaround
         # to add them