Mercurial > libervia-backend
comparison frontends/src/jp/jp @ 720:3954cb4d96a7
jp: fixed sendFile call
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 23 Nov 2013 13:38:05 +0100 |
parents | f7878ad3c846 |
children | 0077912bc9ba |
comparison
equal
deleted
inserted
replaced
719:56aa0e98c92e | 720:3954cb4d96a7 |
---|---|
305 info(_("Adding %s"), file) | 305 info(_("Adding %s"), file) |
306 bz2.add(file) | 306 bz2.add(file) |
307 bz2.close() | 307 bz2.close() |
308 info(_("OK !")) | 308 info(_("OK !")) |
309 path = abspath(tmpfile) | 309 path = abspath(tmpfile) |
310 self.transfer_data = self.bridge.sendFile(full_dest_jid, path, {}, profile_key=self.profile) | 310 self.transfer_data = self.bridge.sendFile(full_dest_jid, path, {}, self.profile) |
311 else: | 311 else: |
312 for file in self.files: | 312 for file in self.files: |
313 path = abspath(file) | 313 path = abspath(file) |
314 self.transfer_data = self.bridge.sendFile(full_dest_jid, path, {}, profile_key=self.profile) #FIXME: show progress only for last transfer_id | 314 self.transfer_data = self.bridge.sendFile(full_dest_jid, path, {}, self.profile) #FIXME: show progress only for last transfer_id |
315 | 315 |
316 | 316 |
317 def _getFullJid(self, param_jid): | 317 def _getFullJid(self, param_jid): |
318 """Return the full jid if possible (add last resource when find a bare jid""" | 318 """Return the full jid if possible (add last resource when find a bare jid""" |
319 _jid = JID(param_jid) | 319 _jid = JID(param_jid) |