Mercurial > libervia-backend
changeset 727:c1cd6c0c2c38
core: fixed statuses parameter in setPresence, and using @NONE@ instead of @DEFAULT@ for default profile_key
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 10 Dec 2013 17:25:31 +0100 |
parents | ade9997fabfa |
children | e07afabc4a25 |
files | src/core/sat_main.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/sat_main.py Tue Dec 10 17:25:31 2013 +0100 +++ b/src/core/sat_main.py Tue Dec 10 17:25:31 2013 +0100 @@ -550,8 +550,10 @@ treatments.addCallback(sendAndStore) treatments.callback(mess_data) - def setPresence(self, to="", show="", priority=0, statuses={}, profile_key='@DEFAULT@'): + def setPresence(self, to="", show="", priority=0, statuses=None, profile_key='@NONE@'): """Send our presence information""" + if statuses is None: + statuses = {} profile = self.memory.getProfileName(profile_key) assert(profile) to_jid = jid.JID(to) if to else None