comparison frontends/src/primitivus/chat.py @ 542:3eeb6c865e4d

frontends: incoming files transfer management: - quick app: getWaitingConf is used on profile connexion - primitivus: askConfirmation is now managed, use new 'dir' style of FileDialog
author Goffi <goffi@goffi.org>
date Wed, 14 Nov 2012 20:37:15 +0100
parents 3bd8f84f920d
children ca13633d3b6b
comparison
equal deleted inserted replaced
541:8b116fa42a31 542:3eeb6c865e4d
325 last_resource = self.host.bridge.getLastResource(unicode(self.target.short), self.host.profile) 325 last_resource = self.host.bridge.getLastResource(unicode(self.target.short), self.host.profile)
326 if last_resource: 326 if last_resource:
327 full_jid = JID("%s/%s" % (self.target.short, last_resource)) 327 full_jid = JID("%s/%s" % (self.target.short, last_resource))
328 else: 328 else:
329 full_jid = self.target 329 full_jid = self.target
330 id = self.host.bridge.sendFile(full_jid, filepath, {}, self.host.profile) 330 progress_id = self.host.bridge.sendFile(full_jid, filepath, {}, self.host.profile)
331 self.host.addProgress(id,filepath) 331 self.host.addProgress(progress_id,filepath)