Mercurial > libervia-backend
comparison sat_bridge/DBus.py @ 221:96186f36d8cb
bridge: fixed newAlert parameters order
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 27 Dec 2010 21:56:12 +0100 |
parents | 556c2bd7c344 |
children |
comparison
equal
deleted
inserted
replaced
220:c5274bf5e18b | 221:96186f36d8cb |
---|---|
349 | 349 |
350 def newMessage(self, from_jid, msg, type='chat', to='', profile='@NONE@'): | 350 def newMessage(self, from_jid, msg, type='chat', to='', profile='@NONE@'): |
351 debug("sending message...") | 351 debug("sending message...") |
352 self.dbus_bridge.newMessage(from_jid, msg, type, to, profile) | 352 self.dbus_bridge.newMessage(from_jid, msg, type, to, profile) |
353 | 353 |
354 def newAlert(self, msg, title="", type="INFO", profile='@NONE@'): | 354 def newAlert(self, msg, title="", alert_type="INFO", profile='@NONE@'): |
355 self.dbus_bridge.newAlert(type, title, msg, profile) | 355 self.dbus_bridge.newAlert(msg, title, alert_type, profile) |
356 | 356 |
357 def presenceUpdate(self, entity, show, priority, statuses, profile): | 357 def presenceUpdate(self, entity, show, priority, statuses, profile): |
358 debug("updating presence for %s",entity) | 358 debug("updating presence for %s",entity) |
359 self.dbus_bridge.presenceUpdate(entity, show, priority, statuses, profile) | 359 self.dbus_bridge.presenceUpdate(entity, show, priority, statuses, profile) |
360 | 360 |
361 def roomJoined(self, room_id, room_service, room_nicks, user_nick, profile): | 361 def roomJoined(self, room_id, room_service, room_nicks, user_nick, profile): |
362 self.dbus_bridge.roomJoined(room_id, room_service, room_nicks, user_nick, profile) | 362 self.dbus_bridge.roomJoined(room_id, room_service, room_nicks, user_nick, profile) |
363 | 363 |
364 def subscribe(self, type, entity, profile): | 364 def subscribe(self, sub_type, entity, profile): |
365 debug("subscribe request for %s",entity) | 365 debug("subscribe request for %s",entity) |
366 self.dbus_bridge.subscribe(type, entity, profile) | 366 self.dbus_bridge.subscribe(sub_type, entity, profile) |
367 | 367 |
368 def paramUpdate(self, name, value, category, profile): | 368 def paramUpdate(self, name, value, category, profile): |
369 debug("updating param [%s] %s ", category, name) | 369 debug("updating param [%s] %s ", category, name) |
370 self.dbus_bridge.paramUpdate(name, value, category, profile) | 370 self.dbus_bridge.paramUpdate(name, value, category, profile) |
371 | 371 |