Mercurial > libervia-pubsub
diff sat_pubsub/backend.py @ 453:1a179ad10125
backend: service name can now be specified with `service_name` parameter
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 02 Jul 2021 15:39:57 +0200 |
parents | 8da3db1e82a9 |
children | 0b5233981671 |
line wrap: on
line diff
--- a/sat_pubsub/backend.py Fri Jul 02 15:18:09 2021 +0200 +++ b/sat_pubsub/backend.py Fri Jul 02 15:39:57 2021 +0200 @@ -1335,7 +1335,7 @@ discoIdentity = disco.DiscoIdentity('pubsub', 'service', - 'Salut à Toi pubsub service') + const.SERVICE_NAME) pubsubService = None @@ -1372,6 +1372,8 @@ self.backend = backend self.hideNodes = False + self.__class__.discoIdentity.name = backend.config["service_name"] + self.backend.registerPublishNotifier(self._notifyPublish) self.backend.registerRetractNotifier(self._notifyRetract) self.backend.registerPreDelete(self._preDelete)