comparison frontends/src/quick_frontend/quick_app.py @ 2059:9dd76a5b63ba

quick app(app): call entityDataUpdateHandler on profile plug instead of setCache directly
author Goffi <goffi@goffi.org>
date Fri, 09 Sep 2016 23:54:33 +0200
parents 7bfa97e533ac
children 748e539c5feb
comparison
equal deleted inserted replaced
2058:b4db946ddc89 2059:9dd76a5b63ba
94 94
95 def _plug_profile_gotCachedValues(self, cached_values): 95 def _plug_profile_gotCachedValues(self, cached_values):
96 # add the contact list and its listener 96 # add the contact list and its listener
97 contact_list = self.host.contact_lists.addProfile(self.profile) 97 contact_list = self.host.contact_lists.addProfile(self.profile)
98 98
99 for entity, data in cached_values.iteritems(): 99 for entity_s, data in cached_values.iteritems():
100 for key, value in data.iteritems(): 100 for key, value in data.iteritems():
101 contact_list.setCache(jid.JID(entity), key, value) 101 self.host.entityDataUpdatedHandler(entity_s, key, value, self.profile)
102 102
103 if not self.bridge.isConnected(self.profile): 103 if not self.bridge.isConnected(self.profile):
104 self.host.setPresenceStatus(C.PRESENCE_UNAVAILABLE, '', profile=self.profile) 104 self.host.setPresenceStatus(C.PRESENCE_UNAVAILABLE, '', profile=self.profile)
105 else: 105 else:
106 106