Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_app.py @ 274:c1ad04586edf
Bridge: rename connection_error to connectionError for function name consistency
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 25 Jan 2011 15:24:31 +0100 |
parents | 1d2e0dfe7114 |
children | f19771d2e63b |
comparison
equal
deleted
inserted
replaced
273:3b5e856b3a32 | 274:c1ad04586edf |
---|---|
44 print(_(u"Can't connect to SàT backend, are you sure it's launched ?")) | 44 print(_(u"Can't connect to SàT backend, are you sure it's launched ?")) |
45 import sys | 45 import sys |
46 sys.exit(1) | 46 sys.exit(1) |
47 self.bridge.register("connected", self.connected) | 47 self.bridge.register("connected", self.connected) |
48 self.bridge.register("disconnected", self.disconnected) | 48 self.bridge.register("disconnected", self.disconnected) |
49 self.bridge.register("connection_error", self.connection_error) | 49 self.bridge.register("connectionError", self.connectionError) |
50 self.bridge.register("newContact", self.newContact) | 50 self.bridge.register("newContact", self.newContact) |
51 self.bridge.register("newMessage", self.newMessage) | 51 self.bridge.register("newMessage", self.newMessage) |
52 self.bridge.register("newAlert", self.newAlert) | 52 self.bridge.register("newAlert", self.newAlert) |
53 self.bridge.register("presenceUpdate", self.presenceUpdate) | 53 self.bridge.register("presenceUpdate", self.presenceUpdate) |
54 self.bridge.register("roomJoined", self.roomJoined) | 54 self.bridge.register("roomJoined", self.roomJoined) |
186 debug(_("Disconnected")) | 186 debug(_("Disconnected")) |
187 self.CM.clear() | 187 self.CM.clear() |
188 self.contactList.clear_contacts() | 188 self.contactList.clear_contacts() |
189 self.setStatusOnline(False) | 189 self.setStatusOnline(False) |
190 | 190 |
191 def connection_error(self, error_type, profile): | 191 def connectionError(self, error_type, profile): |
192 """called when something goest wrong with the connection""" | 192 """called when something goest wrong with the connection""" |
193 if not self.check_profile(profile): | 193 if not self.check_profile(profile): |
194 return | 194 return |
195 debug(_("Connection Error")) | 195 debug(_("Connection Error")) |
196 self.disconnected(profile) | 196 self.disconnected(profile) |