diff src/sat.tac @ 266:c4b84a2d2ad1

bridge: constructor and template improved, documentation added
author Goffi <goffi@goffi.org>
date Mon, 24 Jan 2011 17:47:45 +0100
parents 27bc5d7732a3
children c1ad04586edf
line wrap: on
line diff
--- a/src/sat.tac	Mon Jan 24 01:22:00 2011 +0100
+++ b/src/sat.tac	Mon Jan 24 17:47:45 2011 +0100
@@ -108,7 +108,7 @@
 
     def initializationFailed(self, reason):
         print ("initializationFailed: %s" % reason)
-        self.host_app.bridge.connection_error(self.profile,"AUTH_ERROR")
+        self.host_app.bridge.connection_error("AUTH_ERROR", self.profile)
         try:
             client.XMPPClient.initializationFailed(self, reason)
         except:
@@ -793,7 +793,7 @@
             return ""
 
     def callMenu(self, category, name, type="NORMAL", profile_key='@DEFAULT@'):
-        """return the help string of the menu"""
+        """return the id of the action"""
         profile = self.memory.getProfileName(profile_key)
         if not profile_key:
             error (_('Non-exsitant profile'))