Mercurial > libervia-backend
comparison frontends/src/wix/chat.py @ 387:e66d300c5d42
frontends, bridge: sendFile method signature change + jid parameters in bridge now use _jid suffix
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 29 Sep 2011 12:13:22 +0200 |
parents | 141eeb7cd9e6 |
children | 9393ffbad6dc |
comparison
equal
deleted
inserted
replaced
386:deeebf697d9a | 387:e66d300c5d42 |
---|---|
258 debug(_("Send File")) | 258 debug(_("Send File")) |
259 filename = wx.FileSelector(_("Choose a file to send"), flags = wx.FD_FILE_MUST_EXIST) | 259 filename = wx.FileSelector(_("Choose a file to send"), flags = wx.FD_FILE_MUST_EXIST) |
260 if filename: | 260 if filename: |
261 debug(_("filename: %s"),filename) | 261 debug(_("filename: %s"),filename) |
262 full_jid = self.host.CM.get_full(self.target) | 262 full_jid = self.host.CM.get_full(self.target) |
263 id = self.host.bridge.sendFile(full_jid, filename) | 263 id = self.host.bridge.sendFile(full_jid, filename, {}, self.host.profile) |
264 self.host.waitProgress(id, _("File Transfer"), _("Copying %s") % os.path.basename(filename)) | 264 self.host.waitProgress(id, _("File Transfer"), _("Copying %s") % os.path.basename(filename)) |
265 | 265 |
266 def onStartTarot(self, e): | 266 def onStartTarot(self, e): |
267 debug (_("Starting Tarot game")) | 267 debug (_("Starting Tarot game")) |
268 warning (_("FIXME: temporary menu, must be changed")) | 268 warning (_("FIXME: temporary menu, must be changed")) |