bridge: constructor and template improved, documentation added

This commit is contained in:
Goffi 2011-01-24 17:47:45 +01:00
commit 793e6d6c3d

View file

@ -108,7 +108,7 @@ class SatXMPPClient(client.XMPPClient):
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 @@ class SAT(service.Service):
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'))