changeset 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 45a3392b9d26
children dbd2274fc78b
files cagou/plugins/plugin_wid_file_sharing.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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'',