Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_app.py @ 1223:802b7e6bf098
frontends: printInfo and printMessage timestamp attribute defaults to None instead of ''
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 04 Oct 2014 10:23:13 +0200 |
parents | e15d8a01cf6a |
children | 03661d1b216a |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py Wed Sep 24 13:49:43 2014 +0200 +++ b/frontends/src/quick_frontend/quick_app.py Sat Oct 04 10:23:13 2014 +0200 @@ -308,9 +308,9 @@ timestamp = extra.get('archive') if type_ == C.MESS_TYPE_INFO: - self.chat_wins[win.bare].printInfo( msg, timestamp = float(timestamp) if timestamp else '') + self.chat_wins[win.bare].printInfo(msg, timestamp=float(timestamp) if timestamp else None) else: - self.chat_wins[win.bare].printMessage(from_jid, msg, profile, float(timestamp) if timestamp else '') + self.chat_wins[win.bare].printMessage(from_jid, msg, profile, float(timestamp) if timestamp else None) def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, callback=None, errback=None, profile_key="@NONE@"): if to_jid.startswith(C.PRIVATE_PREFIX):