# HG changeset patch # User Goffi # Date 1529870937 -7200 # Node ID 286f14127f61eb4761e5001b51bd9aa98182a47c # Parent e42e0c45d38425da2108a51a69b070758ead62a0 plugin file sharing: started to limit line to 90 chars as a test diff -r e42e0c45d384 -r 286f14127f61 cagou/plugins/plugin_wid_file_sharing.py --- 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()