diff sat/core/xmpp.py @ 2778:f7deb1c36b47

core, XEP-0315: move XML element handling to sat_tmp: XML Element is now implemented in sat_tmp, so it can be available also for SàT Pubsub. The XEP-0315 is thus not needed anymore and have been removed, XEP-0315 namespace has been added to base disco features. Use the new install() function of sat_tmp to do the patching.
author Goffi <goffi@goffi.org>
date Wed, 16 Jan 2019 09:18:16 +0100
parents 003b8b4b56a7
children 33fa70c102de
line wrap: on
line diff
--- a/sat/core/xmpp.py	Tue Jan 15 08:51:56 2019 +0100
+++ b/sat/core/xmpp.py	Wed Jan 16 09:18:16 2019 +0100
@@ -45,6 +45,7 @@
 
 NS_X_DATA = u"jabber:x:data"
 NS_DISCO_INFO = u"http://jabber.org/protocol/disco#info"
+NS_XML_ELEMENT = u"urn:xmpp:xml-element"
 
 
 class SatXMPPEntity(object):
@@ -1393,7 +1394,10 @@
         disco.DiscoClientProtocol.__init__(self)
 
     def getDiscoInfo(self, requestor, target, nodeIdentifier=""):
+        # those features are implemented in Wokkel (or sat_tmp.wokkel)
+        # and thus are always available
         return [disco.DiscoFeature(NS_X_DATA),
+                disco.DiscoFeature(NS_XML_ELEMENT),
                 disco.DiscoFeature(NS_DISCO_INFO)]
 
     def getDiscoItems(self, requestor, target, nodeIdentifier=""):