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.
This commit is contained in:
parent
bbdf716d93
commit
e2ab5e33c8
1 changed files with 7 additions and 125 deletions
|
|
@ -45,6 +45,7 @@ import sys
|
|||
|
||||
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 @@ class SatDiscoProtocol(disco.DiscoClientProtocol):
|
|||
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=""):
|
||||
|
|
|
|||
Loading…
Reference in a new issue