comparison src/test/helpers.py @ 1315:be3a301540c0 frontends_multi_profiles

core (memory): updateEntityData now accept a "silent" argument to avoid sending signal to frontends when updating an attribute with "signalOnUpdate" flag.
author Goffi <goffi@goffi.org>
date Mon, 09 Feb 2015 21:39:51 +0100
parents 020e663bc286
children f71a0fc26886
comparison
equal deleted inserted replaced
1314:bb9c32249778 1315:be3a301540c0
284 pass 284 pass
285 285
286 def delWaitingSub(self, contact_jid, profile_key): 286 def delWaitingSub(self, contact_jid, profile_key):
287 pass 287 pass
288 288
289 def updateEntityData(self, entity_jid, key, value, profile_key): 289 def updateEntityData(self, entity_jid, key, value, silent=False, profile_key="@NONE@"):
290 self.entities_data.setdefault(entity_jid, {}) 290 self.entities_data.setdefault(entity_jid, {})
291 self.entities_data[entity_jid][key] = value 291 self.entities_data[entity_jid][key] = value
292 292
293 def getEntityData(self, entity_jid, keys, profile_key): 293 def getEntityData(self, entity_jid, keys, profile_key):
294 result = {} 294 result = {}