comparison libervia/server/pages.py @ 1494:1671d187e71d

server (pages): update psSubscribe call following change in backend
author Goffi <goffi@goffi.org>
date Sat, 14 May 2022 22:44:15 +0200
parents 774a81a6e8b5
children 409d10211b20
comparison
equal deleted inserted replaced
1493:1702b8c821c4 1494:1671d187e71d
1131 cache = (self.cache[profile][cache_type][service][node] 1131 cache = (self.cache[profile][cache_type][service][node]
1132 [self.vhost_root][request.uri][locale][self]) 1132 [self.vhost_root][request.uri][locale][self])
1133 except KeyError: 1133 except KeyError:
1134 # no cache yet, let's subscribe to the pubsub node 1134 # no cache yet, let's subscribe to the pubsub node
1135 d1 = self.host.bridgeCall( 1135 d1 = self.host.bridgeCall(
1136 "psSubscribe", service.full(), node, {}, profile 1136 "psSubscribe", service.full(), node, "", profile
1137 ) 1137 )
1138 d1.addCallback(self.checkCacheSubscribeCb, service, node) 1138 d1.addCallback(self.checkCacheSubscribeCb, service, node)
1139 d1.addErrback(self.checkCacheSubscribeEb, service, node) 1139 d1.addErrback(self.checkCacheSubscribeEb, service, node)
1140 d2 = self.host.bridgeCall("psNodeWatchAdd", service.full(), node, profile) 1140 d2 = self.host.bridgeCall("psNodeWatchAdd", service.full(), node, profile)
1141 d2.addErrback(self.psNodeWatchAddEb, service, node) 1141 d2.addErrback(self.psNodeWatchAddEb, service, node)