Mercurial > libervia-backend
comparison frontends/quick_frontend/quick_app.py @ 221:96186f36d8cb
bridge: fixed newAlert parameters order
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 27 Dec 2010 21:56:12 +0100 |
parents | 7baee9bb37af |
children |
comparison
equal
deleted
inserted
replaced
220:c5274bf5e18b | 221:96186f36d8cb |
---|---|
202 win = addr if sender.short == self.profiles[profile]['whoami'].short else sender | 202 win = addr if sender.short == self.profiles[profile]['whoami'].short else sender |
203 self.current_action_ids = set() | 203 self.current_action_ids = set() |
204 self.current_action_ids_cb = {} | 204 self.current_action_ids_cb = {} |
205 self.chat_wins[win.short].printMessage(sender, msg, profile) | 205 self.chat_wins[win.short].printMessage(sender, msg, profile) |
206 | 206 |
207 def newAlert(self, msg, title, type, profile): | 207 def newAlert(self, msg, title, alert_type, profile): |
208 if not self.check_profile(profile): | 208 if not self.check_profile(profile): |
209 return | 209 return |
210 assert type in ['INFO','ERROR'] | 210 assert alert_type in ['INFO','ERROR'] |
211 self.showDialog(unicode(msg),unicode(title),type.lower()) | 211 self.showDialog(unicode(msg),unicode(title),alert_type.lower()) |
212 | 212 |
213 | 213 |
214 def setStatusOnline(self, online=True): | 214 def setStatusOnline(self, online=True): |
215 pass | 215 pass |
216 | 216 |