changeset 2529:cbbf2ff2ef3f

component file sharing: changed pubsub identity: pubsub service disco identity has been changed to non standard "virtual" type, to avoid it to be used as main pubsub service by the client.
author Goffi <goffi@goffi.org>
date Sun, 18 Mar 2018 11:26:01 +0100
parents 65e278997715
children 0cb32e503aff
files src/plugins/plugin_comp_file_sharing.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_comp_file_sharing.py	Fri Mar 16 18:43:11 2018 +0100
+++ b/src/plugins/plugin_comp_file_sharing.py	Sun Mar 18 11:26:01 2018 +0100
@@ -246,6 +246,9 @@
         super(Comments_handler, self).__init__() # PubsubVirtualResource())
         self.host = plugin_parent.host
         self.plugin_parent = plugin_parent
+        self.discoIdentity = {'category': 'pubsub',
+                              'type': 'virtual',  # FIXME: non standard, here to avoid this service being considered as main pubsub one
+                              'name': 'files commenting service'}
 
     def _getFileId(self, nodeIdentifier):
         if not nodeIdentifier.startswith(COMMENT_NODE_PREFIX):