comparison sat/plugins/plugin_xep_0329.py @ 3402:08a3e34aead1

plugin XEP-0329: minor reformatting
author Goffi <goffi@goffi.org>
date Thu, 12 Nov 2020 14:53:15 +0100
parents e09cb08166a3
children be6d91572633
comparison
equal deleted inserted replaced
3401:5c97ad3d1653 3402:08a3e34aead1
355 return XEP_0329_handler(self) 355 return XEP_0329_handler(self)
356 356
357 def profileConnected(self, client): 357 def profileConnected(self, client):
358 if client.is_component: 358 if client.is_component:
359 client._file_sharing_allowed_hosts = self.host.memory.getConfig( 359 client._file_sharing_allowed_hosts = self.host.memory.getConfig(
360 'component file_sharing', 'http_upload_allowed_hosts_list') or [client.host] 360 'component file_sharing',
361 'http_upload_allowed_hosts_list') or [client.host]
361 else: 362 else:
362 client._XEP_0329_root_node = ShareNode( 363 client._XEP_0329_root_node = ShareNode(
363 None, 364 None,
364 None, 365 None,
365 TYPE_VIRTUAL, 366 TYPE_VIRTUAL,