Mercurial > libervia-web
diff libervia/server/restricted_bridge.py @ 1329:ed28ad7d484c
browser (cache): new `cache` module to handle cache of roster and identities:
the cache is put in local storage and linked to a session.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Aug 2020 09:31:32 +0200 |
parents | 991ff12241e0 |
children | fe353fceec38 |
line wrap: on
line diff
--- a/libervia/server/restricted_bridge.py Fri Aug 14 09:31:32 2020 +0200 +++ b/libervia/server/restricted_bridge.py Fri Aug 14 09:31:32 2020 +0200 @@ -30,6 +30,21 @@ self.host = host self.security_limit = C.SECURITY_LIMIT + async def getContacts(self, profile): + return await self.host.bridgeCall("getContacts", profile) + + async def identityGet(self, entity, metadata_filter, use_cache, profile): + return await self.host.bridgeCall( + "identityGet", entity, metadata_filter, use_cache, profile) + + async def identitiesGet(self, entities, metadata_filter, profile): + return await self.host.bridgeCall( + "identitiesGet", entities, metadata_filter, profile) + + async def identitiesBaseGet(self, profile): + return await self.host.bridgeCall( + "identitiesBaseGet", profile) + async def fileHTTPUploadGetSlot( self, filename, size, content_type, upload_jid, profile): return await self.host.bridgeCall(