comparison src/plugins/plugin_xep_0095.py @ 391:c34fd9d6242e

spelling
author Goffi <goffi@goffi.org>
date Thu, 29 Sep 2011 14:59:14 +0200
parents 41fdaeb005bc
children 8f3551ceee17
comparison
equal deleted inserted replaced
390:8e87af2e2d1f 391:c34fd9d6242e
107 @param to_jid: recipient 107 @param to_jid: recipient
108 @param profile: %(doc_profile)s""" 108 @param profile: %(doc_profile)s"""
109 self.sendError(id, to_jid, 400, 'cancel', profile=profile) 109 self.sendError(id, to_jid, 400, 'cancel', profile=profile)
110 110
111 def sendFailedError(self, id, to_jid, profile): 111 def sendFailedError(self, id, to_jid, profile):
112 """Helper method to send when we transfert failed 112 """Helper method to send when we transfer failed
113 @param id: IQ id 113 @param id: IQ id
114 @param to_jid: recipient 114 @param to_jid: recipient
115 @param profile: %(doc_profile)s""" 115 @param profile: %(doc_profile)s"""
116 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) 116 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)
117 117
118 def sendError(self, id, to_jid, err_code, err_type='cancel', data={}, profile='@NONE@'): 118 def sendError(self, id, to_jid, err_code, err_type='cancel', data={}, profile='@NONE@'):
119 """Send IQ error as a result 119 """Send IQ error as a result
120 @param id: IQ id 120 @param id: IQ id
121 @param to_jid: recipient 121 @param to_jid: recipient