Mercurial > libervia-desktop-kivy
diff cagou/plugins/plugin_wid_file_sharing.py @ 202:e20796eea873
plugin file sharing: transtype jid.Jid instance to unicode when using bridge, to avoid troubles with pb
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 25 May 2018 11:55:28 +0200 |
parents | b80d275e437f |
children | 9cefc9f8efc9 |
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_file_sharing.py Fri May 25 11:52:56 2018 +0200 +++ b/cagou/plugins/plugin_wid_file_sharing.py Fri May 25 11:55:28 2018 +0200 @@ -366,7 +366,7 @@ type_ = C.FILE_TYPE_DIRECTORY) self.layout.add_widget(item) self.host.bridge.FISList( - self.remote_entity, + unicode(self.remote_entity), self.remote_dir, {}, self.profile, @@ -464,7 +464,7 @@ assert self.remote_entity extra = {'path': path} dest_path = files_utils.get_unique_name(os.path.join(G.host.downloads_dir, name)) - G.host.bridge.fileJingleRequest(self.remote_entity, + G.host.bridge.fileJingleRequest(unicode(self.remote_entity), dest_path, name, u'',