Mercurial > libervia-desktop-kivy
comparison cagou/plugins/plugin_wid_chat.py @ 295:fdbb07f1e373
we are in dev version again
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 14 May 2019 19:23:19 +0200 |
parents | 717c6c368f70 |
children | fe8639e64c69 |
comparison
equal
deleted
inserted
replaced
294:a8518a091766 | 295:fdbb07f1e373 |
---|---|
640 def fileTransferEb(self, err_msg, cleaning_cb, profile): | 640 def fileTransferEb(self, err_msg, cleaning_cb, profile): |
641 if cleaning_cb is not None: | 641 if cleaning_cb is not None: |
642 cleaning_cb() | 642 cleaning_cb() |
643 msg = _(u"can't transfer file: {reason}").format(reason=err_msg) | 643 msg = _(u"can't transfer file: {reason}").format(reason=err_msg) |
644 log.warning(msg) | 644 log.warning(msg) |
645 self.addNote(_(u"File transfer error"), | 645 G.host.addNote(_(u"File transfer error"), |
646 msg, | 646 msg, |
647 level=C.XMLUI_DATA_LVL_WARNING) | 647 level=C.XMLUI_DATA_LVL_WARNING) |
648 | 648 |
649 def fileTransferCb(self, metadata, cleaning_cb, profile): | 649 def fileTransferCb(self, metadata, cleaning_cb, profile): |
650 log.debug("file transfered: {}".format(metadata)) | 650 log.debug("file transfered: {}".format(metadata)) |
651 extra = {} | 651 extra = {} |
652 | 652 |