comparison frontends/src/quick_frontend/quick_chat.py @ 1296:ebf72fe68d1c frontends_multi_profiles

quick_frontend: fix the history log message
author souliane <souliane@mailoo.org>
date Fri, 06 Feb 2015 10:50:01 +0100
parents faa1129559b8
children 8ea8fa13c351
comparison
equal deleted inserted replaced
1293:0541cb64217e 1296:ebf72fe68d1c
154 """Print the current history 154 """Print the current history
155 @param size (int): number of messages 155 @param size (int): number of messages
156 @param search (str): pattern to filter the history results 156 @param search (str): pattern to filter the history results
157 @param profile (str): %(doc_profile)s 157 @param profile (str): %(doc_profile)s
158 """ 158 """
159 log.debug(_("now we print the history (%d messages)") % size) 159 log_msg = _(u"now we print the history")
160 if size != C.HISTORY_LIMIT_DEFAULT:
161 log_msg += _(u" (%d messages)" % size)
162 log.debug(log_msg)
160 163
161 def onHistory(history): 164 def onHistory(history):
162 for line in history: 165 for line in history:
163 timestamp, from_jid, to_jid, message, type_, extra = line # FIXME: extra is unused ! 166 timestamp, from_jid, to_jid, message, type_, extra = line # FIXME: extra is unused !
164 if ((self.type == C.CHAT_GROUP and type_ != C.MESS_TYPE_GROUPCHAT) or 167 if ((self.type == C.CHAT_GROUP and type_ != C.MESS_TYPE_GROUPCHAT) or