comparison plugins/plugin_xep_0065.py @ 127:55d3ef84f01f

Primitivus: mouse wheel changed to 'up' and 'down' key press
author Goffi <goffi@goffi.org>
date Mon, 12 Jul 2010 18:55:27 +0800
parents f271fff3a713
children bd24f2aed80c
comparison
equal deleted inserted replaced
126:1b33b681ebd8 127:55d3ef84f01f
506 iq.handled = True 506 iq.handled = True
507 SI_elem = iq.firstChildElement() 507 SI_elem = iq.firstChildElement()
508 IQ_id = iq['id'] 508 IQ_id = iq['id']
509 for element in SI_elem.elements(): 509 for element in SI_elem.elements():
510 if element.name == "streamhost": 510 if element.name == "streamhost":
511 info (_("Stream proposed: host=[%(host)s] port=[%(post)s]") % {'host':element['host'], 'port':element['port']}) 511 info (_("Stream proposed: host=[%(host)s] port=[%(port)s]") % {'host':element['host'], 'port':element['port']})
512 factory = self.client_factory 512 factory = self.client_factory
513 self.server_factory.protocol.mode = "target" 513 self.server_factory.protocol.mode = "target"
514 factory.protocol.host = self.host #needed for progress CB 514 factory.protocol.host = self.host #needed for progress CB
515 factory.protocol.xmlstream = client.xmlstream 515 factory.protocol.xmlstream = client.xmlstream
516 factory.protocol.data = self.data 516 factory.protocol.data = self.data