comparison src/plugins/plugin_xep_0047.py @ 404:6a1c6c41b91b

plugin xep-0047: removed gajim workaround as gajim has been fixed
author Goffi <goffi@goffi.org>
date Sat, 08 Oct 2011 11:19:25 +0200
parents c513328ade9d
children cf005701624b
comparison
equal deleted inserted replaced
403:c513328ade9d 404:6a1c6c41b91b
36 from twisted.words.protocols.xmlstream import XMPPHandler 36 from twisted.words.protocols.xmlstream import XMPPHandler
37 except ImportError: 37 except ImportError:
38 from wokkel.subprotocols import XMPPHandler 38 from wokkel.subprotocols import XMPPHandler
39 39
40 MESSAGE = '/message' 40 MESSAGE = '/message'
41 IQ = '/iq'
42 IQ_SET = '/iq[@type="set"]' 41 IQ_SET = '/iq[@type="set"]'
43 NS_IBB = 'http://jabber.org/protocol/ibb' 42 NS_IBB = 'http://jabber.org/protocol/ibb'
44 IBB_OPEN = IQ_SET + '/open[@xmlns="' + NS_IBB + '"]' 43 IBB_OPEN = IQ_SET + '/open[@xmlns="' + NS_IBB + '"]'
45 IBB_CLOSE = IQ_SET + '/close[@xmlns="' + NS_IBB + '" and @sid="%s"]' 44 IBB_CLOSE = IQ_SET + '/close[@xmlns="' + NS_IBB + '" and @sid="%s"]'
46 IBB_IQ_DATA = IQ + '/data[@xmlns="' + NS_IBB + '" and @sid="%s"]' #we use IQ instead of IQ_SET because of a bug in Gajim 45 IBB_IQ_DATA = IQ_SET + '/data[@xmlns="' + NS_IBB + '" and @sid="%s"]'
47 IBB_MESSAGE_DATA = MESSAGE + '/data[@xmlns="' + NS_IBB + '" and @sid="%s"]' 46 IBB_MESSAGE_DATA = MESSAGE + '/data[@xmlns="' + NS_IBB + '" and @sid="%s"]'
48 TIMEOUT = 60 #timeout for workflow 47 TIMEOUT = 60 #timeout for workflow
49 BLOCK_SIZE = 4096 48 BLOCK_SIZE = 4096
50 49
51 PLUGIN_INFO = { 50 PLUGIN_INFO = {