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.
This commit is contained in:
Goffi 2018-03-18 11:26:01 +01:00
commit a1f953f825

View file

@ -246,6 +246,9 @@ class Comments_handler(pubsub.PubSubService):
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):