comparison src/plugins/plugin_xep_0096.py @ 721:0077912bc9ba

jp: removed named argument for pipeOut, as it's not managed with dynamicaly added methods
author Goffi <goffi@goffi.org>
date Tue, 26 Nov 2013 18:30:35 +0100
parents 6821fc06a324
children bfabeedbf32e
comparison
equal deleted inserted replaced
720:3954cb4d96a7 721:0077912bc9ba
30 IQ_SET = '/iq[@type="set"]' 30 IQ_SET = '/iq[@type="set"]'
31 PROFILE_NAME = "file-transfer" 31 PROFILE_NAME = "file-transfer"
32 PROFILE = "http://jabber.org/protocol/si/profile/" + PROFILE_NAME 32 PROFILE = "http://jabber.org/protocol/si/profile/" + PROFILE_NAME
33 33
34 PLUGIN_INFO = { 34 PLUGIN_INFO = {
35 "name": "XEP 0096 Plugin", 35 "name": "XEP-0096 Plugin",
36 "import_name": "XEP-0096", 36 "import_name": "XEP-0096",
37 "type": "XEP", 37 "type": "XEP",
38 "protocols": ["XEP-0096"], 38 "protocols": ["XEP-0096"],
39 "dependencies": ["XEP-0020", "XEP-0095", "XEP-0065", "XEP-0047"], 39 "dependencies": ["XEP-0020", "XEP-0095", "XEP-0065", "XEP-0047"],
40 "main": "XEP_0096", 40 "main": "XEP_0096",
299 % {"sid": sid, "profile": profile}) 299 % {"sid": sid, "profile": profile})
300 file_obj.close() 300 file_obj.close()
301 301
302 def sendFailureCb(self, sid, file_obj, stream_method, reason, profile): 302 def sendFailureCb(self, sid, file_obj, stream_method, reason, profile):
303 file_obj.close() 303 file_obj.close()
304 warning(_('Transfer %(id)s failed with stream method %(s_method)s: %(reason)s [%(profile)s') % {'id': sid, "s_method": stream_method, 'reason': reason, 'profile': profile}) 304 warning(_('Transfer %(id)s failed with stream method %(s_method)s: %(reason)s [%(profile)s]') % {'id': sid, "s_method": stream_method, 'reason': reason, 'profile': profile})