This commit is contained in:
Goffi 2011-09-29 14:59:14 +02:00
commit c64b06921b

View file

@ -109,11 +109,11 @@ class XEP_0095():
self.sendError(id, to_jid, 400, 'cancel', profile=profile)
def sendFailedError(self, id, to_jid, profile):
"""Helper method to send when we transfert failed
"""Helper method to send when we transfer failed
@param id: IQ id
@param to_jid: recipient
@param profile: %(doc_profile)s"""
self.sendError(id, to_jid, 500, 'cancel', {'custom':'failed'}, profile=profile) #as there is no error code for failed transfert, we use 500 (undefined-condition)
self.sendError(id, to_jid, 500, 'cancel', {'custom':'failed'}, profile=profile) #as there is no error code for failed transfer, we use 500 (undefined-condition)
def sendError(self, id, to_jid, err_code, err_type='cancel', data={}, profile='@NONE@'):
"""Send IQ error as a result