comparison cagou/plugins/plugin_wid_file_sharing.py @ 199:b80d275e437f

plugin file sharing: use new local_device argument of discoFindByFeatures
author Goffi <goffi@goffi.org>
date Wed, 23 May 2018 21:54:46 +0200
parents 60b63c3e63a1
children e20796eea873
comparison
equal deleted inserted replaced
198:60b63c3e63a1 199:b80d275e437f
311 msg = _(u"can't find file information sharing namespace, is the plugin running?") 311 msg = _(u"can't find file information sharing namespace, is the plugin running?")
312 log.warning(msg) 312 log.warning(msg)
313 G.host.addNote(_(u"missing plugin"), msg, C.XMLUI_DATA_LVL_ERROR) 313 G.host.addNote(_(u"missing plugin"), msg, C.XMLUI_DATA_LVL_ERROR)
314 return 314 return
315 self.host.bridge.discoFindByFeatures( 315 self.host.bridge.discoFindByFeatures(
316 [namespace], [], False, True, True, True, self.profile, 316 [namespace], [], False, True, True, True, False, self.profile,
317 callback=self._discoFindByFeaturesCb, 317 callback=self._discoFindByFeaturesCb,
318 errback=partial(G.host.errback, 318 errback=partial(G.host.errback,
319 title=_(u"shared folder error"), 319 title=_(u"shared folder error"),
320 message=_(u"can't check sharing devices: {msg}"))) 320 message=_(u"can't check sharing devices: {msg}")))
321 321