comparison src/core/sat_main.py @ 1314:bb9c32249778 frontends_multi_profiles

core: added getEntitiesData which get cache data for several entities at once
author Goffi <goffi@goffi.org>
date Mon, 09 Feb 2015 21:39:51 +0100
parents faa1129559b8
children 8adcdf2cdfe1
comparison
equal deleted inserted replaced
1313:a8d7500090f6 1314:bb9c32249778
81 sys.exit(1) 81 sys.exit(1)
82 self.bridge.register("getReady", lambda: self._initialised) 82 self.bridge.register("getReady", lambda: self._initialised)
83 self.bridge.register("getVersion", lambda: C.APP_VERSION) 83 self.bridge.register("getVersion", lambda: C.APP_VERSION)
84 self.bridge.register("getProfileName", self.memory.getProfileName) 84 self.bridge.register("getProfileName", self.memory.getProfileName)
85 self.bridge.register("getProfilesList", self.memory.getProfilesList) 85 self.bridge.register("getProfilesList", self.memory.getProfilesList)
86 self.bridge.register("getEntityData", lambda _jid, keys, profile: self.memory.getEntityData(jid.JID(_jid), keys, profile)) 86 self.bridge.register("getEntityData", lambda jid_, keys, profile: self.memory.getEntityData(jid.JID(jid_), keys, profile))
87 self.bridge.register("getEntitiesData", self.memory._getEntitiesData)
87 self.bridge.register("asyncCreateProfile", self.memory.asyncCreateProfile) 88 self.bridge.register("asyncCreateProfile", self.memory.asyncCreateProfile)
88 self.bridge.register("asyncDeleteProfile", self.memory.asyncDeleteProfile) 89 self.bridge.register("asyncDeleteProfile", self.memory.asyncDeleteProfile)
89 self.bridge.register("asyncConnect", self.asyncConnect) 90 self.bridge.register("asyncConnect", self.asyncConnect)
90 self.bridge.register("disconnect", self.disconnect) 91 self.bridge.register("disconnect", self.disconnect)
91 self.bridge.register("getContacts", self.getContacts) 92 self.bridge.register("getContacts", self.getContacts)