Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_app.py @ 698:d731ae066158
core: sendMessage's options parameter has been renamed to extra to be consistent with newMessage
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 13 Nov 2013 13:58:10 +0100 |
parents | f7878ad3c846 |
children | 682933ca304c |
comparison
equal
deleted
inserted
replaced
697:0c84fb112d70 | 698:d731ae066158 |
---|---|
280 self.current_action_ids_cb = {} | 280 self.current_action_ids_cb = {} |
281 | 281 |
282 timestamp = extra.get('archive') | 282 timestamp = extra.get('archive') |
283 self.chat_wins[win.bare].printMessage(from_jid, msg, profile, float(timestamp) if timestamp else '') | 283 self.chat_wins[win.bare].printMessage(from_jid, msg, profile, float(timestamp) if timestamp else '') |
284 | 284 |
285 def sendMessage(self, to_jid, message, subject='', mess_type="auto", options={}, profile_key="@NONE@"): | 285 def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@"): |
286 if to_jid.startswith(const_PRIVATE_PREFIX): | 286 if to_jid.startswith(const_PRIVATE_PREFIX): |
287 to_jid = unescapePrivate(to_jid) | 287 to_jid = unescapePrivate(to_jid) |
288 mess_type = "chat" | 288 mess_type = "chat" |
289 self.bridge.sendMessage(to_jid, message, subject, mess_type, options, profile_key) | 289 self.bridge.sendMessage(to_jid, message, subject, mess_type, extra, profile_key) |
290 | 290 |
291 def newAlert(self, msg, title, alert_type, profile): | 291 def newAlert(self, msg, title, alert_type, profile): |
292 if not self.check_profile(profile): | 292 if not self.check_profile(profile): |
293 return | 293 return |
294 assert alert_type in ['INFO','ERROR'] | 294 assert alert_type in ['INFO','ERROR'] |