changeset 217:286f14127f61

plugin file sharing: started to limit line to 90 chars as a test
author Goffi <goffi@goffi.org>
date Sun, 24 Jun 2018 22:08:57 +0200
parents e42e0c45d384
children 30be583dbabc
files cagou/plugins/plugin_wid_file_sharing.py
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_file_sharing.py	Sun Jun 24 22:08:16 2018 +0200
+++ b/cagou/plugins/plugin_wid_file_sharing.py	Sun Jun 24 22:08:57 2018 +0200
@@ -278,8 +278,12 @@
         if not FileSharing.signals_registered:
             # FIXME: we use this hack (registering the signal for the whole class) now
             #        as there is currently no unregisterSignal available in bridges
-            G.host.registerSignal("FISSharedPathNew", handler=FileSharing.shared_path_new, iface="plugin")
-            G.host.registerSignal("FISSharedPathRemoved", handler=FileSharing.shared_path_removed, iface="plugin")
+            G.host.registerSignal("FISSharedPathNew",
+                                  handler=FileSharing.shared_path_new,
+                                  iface="plugin")
+            G.host.registerSignal("FISSharedPathRemoved",
+                                  handler=FileSharing.shared_path_removed,
+                                  iface="plugin")
             FileSharing.signals_registered = True
         G.host.bridge.FISLocalSharesGet(self.profile,
                                         callback=self.fill_paths,
@@ -355,7 +359,8 @@
         try:
             namespace = self.host.ns_map['fis']
         except KeyError:
-            msg = _(u"can't find file information sharing namespace, is the plugin running?")
+            msg = _(u"can't find file information sharing namespace, "
+                    u"is the plugin running?")
             log.warning(msg)
             G.host.addNote(_(u"missing plugin"), msg, C.XMLUI_DATA_LVL_ERROR)
             return
@@ -410,7 +415,8 @@
                 return
             for f in files:
                 filepath = os.path.join(self.local_dir, f)
-                self.layout.add_widget(LocalPathWidget(sharing_wid=self, filepath=filepath))
+                self.layout.add_widget(LocalPathWidget(sharing_wid=self,
+                                                       filepath=filepath))
         elif self.mode == MODE_VIEW:
             if not self.remote_entity:
                 self.discover_devices()