comparison 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
comparison
equal deleted inserted replaced
1328:683e50799d6d 1329:ed28ad7d484c
27 """ 27 """
28 28
29 def __init__(self, host): 29 def __init__(self, host):
30 self.host = host 30 self.host = host
31 self.security_limit = C.SECURITY_LIMIT 31 self.security_limit = C.SECURITY_LIMIT
32
33 async def getContacts(self, profile):
34 return await self.host.bridgeCall("getContacts", profile)
35
36 async def identityGet(self, entity, metadata_filter, use_cache, profile):
37 return await self.host.bridgeCall(
38 "identityGet", entity, metadata_filter, use_cache, profile)
39
40 async def identitiesGet(self, entities, metadata_filter, profile):
41 return await self.host.bridgeCall(
42 "identitiesGet", entities, metadata_filter, profile)
43
44 async def identitiesBaseGet(self, profile):
45 return await self.host.bridgeCall(
46 "identitiesBaseGet", profile)
32 47
33 async def fileHTTPUploadGetSlot( 48 async def fileHTTPUploadGetSlot(
34 self, filename, size, content_type, upload_jid, profile): 49 self, filename, size, content_type, upload_jid, profile):
35 return await self.host.bridgeCall( 50 return await self.host.bridgeCall(
36 "fileHTTPUploadGetSlot", filename, size, content_type, 51 "fileHTTPUploadGetSlot", filename, size, content_type,