core (xmpp): added appCondition argument to sendError
This commit is contained in:
parent
fb01bd4bcc
commit
672d35d44f
1 changed files with 4 additions and 2 deletions
|
|
@ -533,13 +533,15 @@ class SatXMPPEntity:
|
||||||
iq_elt.timeout = timeout
|
iq_elt.timeout = timeout
|
||||||
return iq_elt
|
return iq_elt
|
||||||
|
|
||||||
def sendError(self, iq_elt, condition, text=None):
|
def sendError(self, iq_elt, condition, text=None, appCondition=None):
|
||||||
"""Send error stanza build from iq_elt
|
"""Send error stanza build from iq_elt
|
||||||
|
|
||||||
@param iq_elt(domish.Element): initial IQ element
|
@param iq_elt(domish.Element): initial IQ element
|
||||||
@param condition(unicode): error condition
|
@param condition(unicode): error condition
|
||||||
"""
|
"""
|
||||||
iq_error_elt = error.StanzaError(condition, text=text).toResponse(iq_elt)
|
iq_error_elt = error.StanzaError(
|
||||||
|
condition, text=text, appContidtion=appCondition
|
||||||
|
).toResponse(iq_elt)
|
||||||
self.xmlstream.send(iq_error_elt)
|
self.xmlstream.send(iq_error_elt)
|
||||||
|
|
||||||
def generateMessageXML(self, data, post_xml_treatments=None):
|
def generateMessageXML(self, data, post_xml_treatments=None):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue