# HG changeset patch # User Goffi # Date 1295965471 -3600 # Node ID c1ad04586edfe5994ecd8a2f6c15f2f74f8e0887 # Parent 3b5e856b3a321afb2395f69b270c5ce4648ca1b3 Bridge: rename connection_error to connectionError for function name consistency diff -r 3b5e856b3a32 -r c1ad04586edf frontends/src/quick_frontend/quick_app.py --- a/frontends/src/quick_frontend/quick_app.py Tue Jan 25 01:37:02 2011 +0100 +++ b/frontends/src/quick_frontend/quick_app.py Tue Jan 25 15:24:31 2011 +0100 @@ -46,7 +46,7 @@ sys.exit(1) self.bridge.register("connected", self.connected) self.bridge.register("disconnected", self.disconnected) - self.bridge.register("connection_error", self.connection_error) + self.bridge.register("connectionError", self.connectionError) self.bridge.register("newContact", self.newContact) self.bridge.register("newMessage", self.newMessage) self.bridge.register("newAlert", self.newAlert) @@ -188,7 +188,7 @@ self.contactList.clear_contacts() self.setStatusOnline(False) - def connection_error(self, error_type, profile): + def connectionError(self, error_type, profile): """called when something goest wrong with the connection""" if not self.check_profile(profile): return diff -r 3b5e856b3a32 -r c1ad04586edf src/bridge/DBus.py --- a/src/bridge/DBus.py Tue Jan 25 01:37:02 2011 +0100 +++ b/src/bridge/DBus.py Tue Jan 25 15:24:31 2011 +0100 @@ -64,8 +64,8 @@ @dbus.service.signal(const_INT_PREFIX+const_COMM_SUFFIX, signature='ss') - def connection_error(self, error_type, profile): - debug ("connection_error") + def connectionError(self, error_type, profile): + debug ("connectionError") @dbus.service.signal(const_INT_PREFIX+const_COMM_SUFFIX, signature='ss') @@ -375,8 +375,8 @@ def connected(self, profile): self.dbus_bridge.connected(profile) - def connection_error(self, error_type, profile): - self.dbus_bridge.connection_error(error_type, profile) + def connectionError(self, error_type, profile): + self.dbus_bridge.connectionError(error_type, profile) def contactDeleted(self, entity, profile): self.dbus_bridge.contactDeleted(entity, profile) diff -r 3b5e856b3a32 -r c1ad04586edf src/bridge/bridge_constructor/bridge_template.ini --- a/src/bridge/bridge_constructor/bridge_template.ini Tue Jan 25 01:37:02 2011 +0100 +++ b/src/bridge/bridge_constructor/bridge_template.ini Tue Jan 25 15:24:31 2011 +0100 @@ -18,7 +18,7 @@ doc=Connection is finished or lost doc_param_0=%(doc_profile)s -[connection_error] +[connectionError] type=signal category=communication sig_in=ss diff -r 3b5e856b3a32 -r c1ad04586edf src/sat.tac --- a/src/sat.tac Tue Jan 25 01:37:02 2011 +0100 +++ b/src/sat.tac Tue Jan 25 15:24:31 2011 +0100 @@ -108,7 +108,7 @@ def initializationFailed(self, reason): print ("initializationFailed: %s" % reason) - self.host_app.bridge.connection_error("AUTH_ERROR", self.profile) + self.host_app.bridge.connectionError("AUTH_ERROR", self.profile) try: client.XMPPClient.initializationFailed(self, reason) except: