comparison libervia/pages/_browser/cache.py @ 1431:7472d5a88006

browser(bridge): allow some bridge methods for session profile: This let the cache to be filled to retrieve identities, and avoid an error message.
author Goffi <goffi@goffi.org>
date Fri, 04 Jun 2021 17:57:29 +0200
parents ed28ad7d484c
children 106bae41f5c8
comparison
equal deleted inserted replaced
1430:0f3038f3a954 1431:7472d5a88006
98 self.update() 98 self.update()
99 if callback: 99 if callback:
100 callback() 100 callback()
101 101
102 def fill_identities(self, entities, callback=None): 102 def fill_identities(self, entities, callback=None):
103 """Check that identities for identites exist, request them otherwise""" 103 """Check that identities for entities exist, request them otherwise"""
104 to_get = {e for e in entities if e not in self._cache['identities']} 104 to_get = {e for e in entities if e not in self._cache['identities']}
105 if to_get: 105 if to_get:
106 bridge.identitiesGet( 106 bridge.identitiesGet(
107 list(to_get), 107 list(to_get),
108 ['avatar', 'nicknames'], 108 ['avatar', 'nicknames'],