some typo + disable Jingle FT for the moment

This commit is contained in:
Yann Leboulanger 2012-06-14 18:43:47 +02:00
parent 1fdf6b7e35
commit c4953b1e11
2 changed files with 6 additions and 6 deletions

View File

@ -216,7 +216,7 @@ class ConnectionBytestream:
self.connection.send(iq)
def _siResultCB(self, con, iq_obj):
file_props = FilesProp.getFileProp(con.name, iq_obj.getAttr('id'))
file_props = FilesProp.getFileProp(self.name, iq_obj.getAttr('id'))
if not file_props:
return
if file_props.request_id:

View File

@ -250,11 +250,11 @@ class FileTransfersWindow:
def show_hash_error(self, jid, file_props, account):
def on_yes(dummy):
# Request the file to the sender
sid = gajim.connections[account].start_file_transfer(jid,
file_props,
sid = gajim.connections[account].start_file_transfer(jid,
file_props,
True)
file_props.sid = sid
if file_props.type_ == 'r':
file_name = os.path.basename(file_props.file_name)
@ -336,7 +336,7 @@ class FileTransfersWindow:
file_path, file_name, file_desc)
if file_props is None:
return False
if contact.supports(NS_JINGLE_FILE_TRANSFER):
if contact.supports(NS_JINGLE_FILE_TRANSFER) and False:
log.info("contact %s supports jingle file transfer"%(contact.get_full_jid()))
gajim.connections[account].start_file_transfer(contact.get_full_jid(),
file_props)
@ -574,7 +574,7 @@ class FileTransfersWindow:
gajim.events.remove_events(account, jid, event)
gajim.interface.roster.draw_contact(jid, account)
gajim.interface.roster.show_title()
FilesProp.deleteFileProp(files_props)
FilesProp.deleteFileProp(file_props)
del(file_props)
def set_progress(self, typ, sid, transfered_size, iter_=None):