core (memory): updateEntityData now accept a "silent" argument to avoid sending signal to frontends when updating an attribute with "signalOnUpdate" flag.

This commit is contained in:
Goffi 2015-02-09 21:39:51 +01:00
commit cdfb2c4dc6

View file

@ -286,7 +286,7 @@ class FakeMemory(Memory):
def delWaitingSub(self, contact_jid, profile_key):
pass
def updateEntityData(self, entity_jid, key, value, profile_key):
def updateEntityData(self, entity_jid, key, value, silent=False, profile_key="@NONE@"):
self.entities_data.setdefault(entity_jid, {})
self.entities_data[entity_jid][key] = value