comparison plugins/plugin_xep_0096.py @ 22:bb72c29f3432

added action cb mechanism for buttons. Tested with a temporary new user registration button.
author Goffi <goffi@goffi.org>
date Tue, 01 Dec 2009 04:56:08 +0100
parents f2a745ca0fbc
children 2e3411a6baad
comparison
equal deleted inserted replaced
21:633c5ed65701 22:bb72c29f3432
141 offer["from"]=self.host.me.full() 141 offer["from"]=self.host.me.full()
142 offer["to"]=answer['from'] 142 offer["to"]=answer['from']
143 query=offer.addElement('query', 'http://jabber.org/protocol/bytestreams') 143 query=offer.addElement('query', 'http://jabber.org/protocol/bytestreams')
144 query['mode']='tcp' 144 query['mode']='tcp'
145 streamhost=query.addElement('streamhost') 145 streamhost=query.addElement('streamhost')
146 streamhost['host']=self.host.memory.getParamV("IP", "File Transfert") 146 streamhost['host']=self.host.memory.getParamA("IP", "File Transfert")
147 streamhost['port']=self.host.memory.getParamV("Port", "File Transfert") 147 streamhost['port']=self.host.memory.getParamA("Port", "File Transfert")
148 streamhost['jid']=self.host.me.full() 148 streamhost['jid']=self.host.me.full()
149 offer.send() 149 offer.send()
150 150
151 151
152 152