comparison src/core/xmpp.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 ba73798317a7
children f71a0fc26886
comparison
equal deleted inserted replaced
1314:bb9c32249778 1315:be3a301540c0
317 317
318 self.host.memory.setPresenceStatus(entity, show or "", 318 self.host.memory.setPresenceStatus(entity, show or "",
319 int(priority), statuses, 319 int(priority), statuses,
320 self.parent.profile) 320 self.parent.profile)
321 321
322 # uncomment these two lines if you need the trigger
323 #if not self.host.trigger.point("presenceReceived", entity, "unavailable", 0, statuses, self.parent.profile):
324 # return
325
326 # now it's time to notify frontends 322 # now it's time to notify frontends
327 self.host.bridge.presenceUpdate(entity.full(), show or "", 323 self.host.bridge.presenceUpdate(entity.full(), show or "",
328 int(priority), statuses, 324 int(priority), statuses,
329 self.parent.profile) 325 self.parent.profile)
330 326